mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-28 21:46:02 -04:00
nvme-auth: remove redundant if statement
No one passes NVME_QID_ANY to nvme_auth_negotiate. Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
01604350e1
commit
bfc4068e1e
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user