From c3e52c71bb0e7e5e34fadafbfcc34bce9899c100 Mon Sep 17 00:00:00 2001 From: Wesley Sheng Date: Tue, 22 Jun 2021 11:34:43 +0800 Subject: [PATCH] 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 Reviewed-by: Bin Meng --- drivers/nvme/nvme.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.39.5