diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index d62862ef5b3f..e7e4a00ee37e 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; /*