nvmet-auth: remove unnecessary break after goto
Remove dead break after goto. Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
committed by
Keith Busch
parent
2ad0713c73
commit
94c78ea124
@ -295,13 +295,11 @@ void nvmet_execute_auth_send(struct nvmet_req *req)
|
|||||||
status = 0;
|
status = 0;
|
||||||
}
|
}
|
||||||
goto done_kfree;
|
goto done_kfree;
|
||||||
break;
|
|
||||||
case NVME_AUTH_DHCHAP_MESSAGE_SUCCESS2:
|
case NVME_AUTH_DHCHAP_MESSAGE_SUCCESS2:
|
||||||
req->sq->authenticated = true;
|
req->sq->authenticated = true;
|
||||||
pr_debug("%s: ctrl %d qid %d ctrl authenticated\n",
|
pr_debug("%s: ctrl %d qid %d ctrl authenticated\n",
|
||||||
__func__, ctrl->cntlid, req->sq->qid);
|
__func__, ctrl->cntlid, req->sq->qid);
|
||||||
goto done_kfree;
|
goto done_kfree;
|
||||||
break;
|
|
||||||
case NVME_AUTH_DHCHAP_MESSAGE_FAILURE2:
|
case NVME_AUTH_DHCHAP_MESSAGE_FAILURE2:
|
||||||
status = nvmet_auth_failure2(d);
|
status = nvmet_auth_failure2(d);
|
||||||
if (status) {
|
if (status) {
|
||||||
@ -312,7 +310,6 @@ void nvmet_execute_auth_send(struct nvmet_req *req)
|
|||||||
status = 0;
|
status = 0;
|
||||||
}
|
}
|
||||||
goto done_kfree;
|
goto done_kfree;
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
req->sq->dhchap_status =
|
req->sq->dhchap_status =
|
||||||
NVME_AUTH_DHCHAP_FAILURE_INCORRECT_MESSAGE;
|
NVME_AUTH_DHCHAP_FAILURE_INCORRECT_MESSAGE;
|
||||||
@ -320,7 +317,6 @@ void nvmet_execute_auth_send(struct nvmet_req *req)
|
|||||||
NVME_AUTH_DHCHAP_MESSAGE_FAILURE2;
|
NVME_AUTH_DHCHAP_MESSAGE_FAILURE2;
|
||||||
req->sq->authenticated = false;
|
req->sq->authenticated = false;
|
||||||
goto done_kfree;
|
goto done_kfree;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
done_failure1:
|
done_failure1:
|
||||||
req->sq->dhchap_status = NVME_AUTH_DHCHAP_FAILURE_INCORRECT_MESSAGE;
|
req->sq->dhchap_status = NVME_AUTH_DHCHAP_FAILURE_INCORRECT_MESSAGE;
|
||||||
|
Reference in New Issue
Block a user