From: Sagi Grimberg Date: Sun, 13 Nov 2022 11:24:12 +0000 (+0200) Subject: nvme-auth: remove redundant if statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bfc4068e1e55e30a86f0e82e15163a60f99a894d;p=linux.git nvme-auth: remove redundant if statement No one passes NVME_QID_ANY to nvme_auth_negotiate. Reviewed-by: Hannes Reinecke Signed-off-by: Sagi Grimberg Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index d62862ef5b3f3..e7e4a00ee37ec 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; /*