From: Wesley Sheng Date: Tue, 22 Jun 2021 03:34:43 +0000 (+0800) Subject: nvme: Remove the redundant aqa value setting X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c3e52c71bb0e7e5e34fadafbfcc34bce9899c100;p=u-boot.git nvme: Remove the redundant aqa value setting AQA (Admin Queue Attributes) register is a dword size with lower word of ASQS, and higher word of ACQS. The code set the variable aqa twice, but it is redundant. Signed-off-by: Wesley Sheng Reviewed-by: Bin Meng --- diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index dc6c39ba10..424fe6d945 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -387,7 +387,6 @@ static int nvme_configure_admin_queue(struct nvme_dev *dev) aqa = nvmeq->q_depth - 1; aqa |= aqa << 16; - aqa |= aqa << 16; dev->page_size = 1 << page_shift;