Skip to content

Commit 94c78ea

Browse files
Chaitanya Kulkarnikeithbusch
authored andcommitted
nvmet-auth: remove unnecessary break after goto
Remove dead break after goto. Signed-off-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 2ad0713 commit 94c78ea

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,11 @@ void nvmet_execute_auth_send(struct nvmet_req *req)
295295
status = 0;
296296
}
297297
goto done_kfree;
298-
break;
299298
case NVME_AUTH_DHCHAP_MESSAGE_SUCCESS2:
300299
req->sq->authenticated = true;
301300
pr_debug("%s: ctrl %d qid %d ctrl authenticated\n",
302301
__func__, ctrl->cntlid, req->sq->qid);
303302
goto done_kfree;
304-
break;
305303
case NVME_AUTH_DHCHAP_MESSAGE_FAILURE2:
306304
status = nvmet_auth_failure2(d);
307305
if (status) {
@@ -312,15 +310,13 @@ void nvmet_execute_auth_send(struct nvmet_req *req)
312310
status = 0;
313311
}
314312
goto done_kfree;
315-
break;
316313
default:
317314
req->sq->dhchap_status =
318315
NVME_AUTH_DHCHAP_FAILURE_INCORRECT_MESSAGE;
319316
req->sq->dhchap_step =
320317
NVME_AUTH_DHCHAP_MESSAGE_FAILURE2;
321318
req->sq->authenticated = false;
322319
goto done_kfree;
323-
break;
324320
}
325321
done_failure1:
326322
req->sq->dhchap_status = NVME_AUTH_DHCHAP_FAILURE_INCORRECT_MESSAGE;

0 commit comments

Comments
 (0)