]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 dc6c39ba10beca3a49a30d9bbee8e1762494c425..424fe6d945a7d7ba8d08345ed034d0e4a96ff583 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;