mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user