nvme: Remove the redundant aqa value setting
PATCH 1/1 nvme: Remove the redundant aqa value setting
From: wesleywesley <[email protected]>
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 wesleywesley <[email protected]>
--- drivers/nvme/nvme.c | 1 - 1 file changed, 1 deletion(-)
drivers/nvme/nvme.c +0 -1
@@ -379,7 +379,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;
Signature · 1 line
2.25.1
Quoted 6 lines · Wesley Sheng
From: wesleywesley <[email protected]>
AQA (Admin Queue Attributes) register is a dword size with lower word of ASQS, and higher word of ACQS.
Quoted 7 lines
The code set the variable aqa twice, but it is redundant.
Signed-off-by wesleywesley <[email protected]>--- drivers/nvme/nvme.c | 1 - 1 file changed, 1 deletion(-)
Reviewed-by Bin Meng <[email protected]>