projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
859b33c
)
nvme: Remove the redundant aqa value setting
author
Wesley Sheng
<wesleyshenggit@sina.com>
Tue, 22 Jun 2021 03:34:43 +0000
(11:34 +0800)
committer
Bin 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
patch
|
blob
|
history
diff --git
a/drivers/nvme/nvme.c
b/drivers/nvme/nvme.c
index dc6c39ba10beca3a49a30d9bbee8e1762494c425..424fe6d945a7d7ba8d08345ed034d0e4a96ff583 100644
(file)
--- 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;