From: Wesley Sheng Date: Tue, 22 Jun 2021 03:34:43 +0000 (+0800) Subject: nvme: Remove the redundant aqa value setting X-Git-Tag: v2021.10~139^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3e52c71bb0e7e5e34fadafbfcc34bce9899c100;p=platform%2Fkernel%2Fu-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 dc6c39b..424fe6d 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;