isert-scst: Remove unreachable code

Code after BUG() is unreachable both with CONFIG_BUG=y and with
CONFIG_BUG=n. Hence remove such code. Detected by smatch.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6600 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-06 18:03:36 +00:00
parent 40db391c12
commit 5d73f89bb0

View File

@@ -804,11 +804,8 @@ int isert_login_req_rx(struct iscsi_cmnd *login_req)
switch (dev->state) {
case CS_INIT:
case CS_RSP_FINISHED:
if (unlikely(dev->login_req != NULL)) {
if (unlikely(dev->login_req != NULL))
sBUG();
res = -EINVAL;
goto out;
}
break;
case CS_REQ_BHS: /* Got login request before done handling old one */
@@ -825,8 +822,6 @@ int isert_login_req_rx(struct iscsi_cmnd *login_req)
default:
sBUG();
res = -EINVAL;
goto out;
}