diff options
author | Wesley Sheng <wesleyshenggit@sina.com> | 2021-06-22 11:34:43 +0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2021-06-23 17:21:14 +0800 |
commit | c3e52c71bb0e7e5e34fadafbfcc34bce9899c100 (patch) | |
tree | 061235695849a997fcb4be46addcdabd37a8f119 /drivers/nvme/nvme.c | |
parent | 859b33c948945f7904f60a2c12a3792d356d51ad (diff) | |
download | u-boot-c3e52c71bb0e7e5e34fadafbfcc34bce9899c100.zip u-boot-c3e52c71bb0e7e5e34fadafbfcc34bce9899c100.tar.gz u-boot-c3e52c71bb0e7e5e34fadafbfcc34bce9899c100.tar.bz2 |
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>
Diffstat (limited to 'drivers/nvme/nvme.c')
-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 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; |