mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00: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:
parent
01604350e1
commit
bfc4068e1e
1 changed files with 1 additions and 1 deletions
|
@ -874,7 +874,7 @@ int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid)
|
||||||
mutex_unlock(&ctrl->dhchap_auth_mutex);
|
mutex_unlock(&ctrl->dhchap_auth_mutex);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
chap->qid = (qid == NVME_QID_ANY) ? 0 : qid;
|
chap->qid = qid;
|
||||||
chap->ctrl = ctrl;
|
chap->ctrl = ctrl;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue