diff options
author | Wesley Sheng <wesleyshenggit@sina.com> | 2021-06-22 06:34:43 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2021-06-23 12:21:14 +0300 |
commit | c3e52c71bb0e7e5e34fadafbfcc34bce9899c100 (patch) | |
tree | 061235695849a997fcb4be46addcdabd37a8f119 | |
parent | 859b33c948945f7904f60a2c12a3792d356d51ad (diff) | |
download | u-boot-c3e52c71bb0e7e5e34fadafbfcc34bce9899c100.tar.xz |
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 <wesleyshenggit@sina.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | drivers/nvme/nvme.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |