Skip to content

Commit 2ad0713

Browse files
tititiou36keithbusch
authored andcommitted
nvmet-auth: remove some dead code
'status' is known to be 0 at the point. And nvmet_auth_challenge() return a -E<ERROR_CODE> or 0. So these lines of code should just be removed. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 2110a6b commit 2ad0713

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

drivers/nvme/target/fabrics-cmd-auth.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,6 @@ void nvmet_execute_auth_receive(struct nvmet_req *req)
483483
status = NVME_SC_INTERNAL;
484484
break;
485485
}
486-
if (status) {
487-
req->sq->dhchap_status = status;
488-
nvmet_auth_failure1(req, d, al);
489-
pr_warn("ctrl %d qid %d: challenge status (%x)\n",
490-
ctrl->cntlid, req->sq->qid,
491-
req->sq->dhchap_status);
492-
status = 0;
493-
break;
494-
}
495486
req->sq->dhchap_step = NVME_AUTH_DHCHAP_MESSAGE_REPLY;
496487
break;
497488
case NVME_AUTH_DHCHAP_MESSAGE_SUCCESS1:

0 commit comments

Comments
 (0)