nvme: Remove the redundant aqa value setting
authorWesley Sheng <wesleyshenggit@sina.com>
Tue, 22 Jun 2021 03:34:43 +0000 (11:34 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 23 Jun 2021 09:21:14 +0000 (17:21 +0800)
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 <wesleyshenggit@sina.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c

index dc6c39b..424fe6d 100644 (file)
@@ -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;