From 4a419620b1fa56396839d46dbd7cbd0cbbb18cab Mon Sep 17 00:00:00 2001 From: Sagi Grimberg Date: Thu, 27 Oct 2022 15:02:52 +0300 Subject: [PATCH 07/16] nvme-auth: remove redundant if statement No one passes NVME_QID_ANY to nvme_auth_negotiate. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index a6312a8846f8..07d497f49e4b 100644 --- a/drivers/nvme/host/auth.c +++ b/drivers/nvme/host/auth.c @@ -874,7 +874,7 @@ int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid) mutex_unlock(&ctrl->dhchap_auth_mutex); return -ENOMEM; } - chap->qid = (qid == NVME_QID_ANY) ? 0 : qid; + chap->qid = qid; chap->ctrl = ctrl; /* -- 2.34.1