mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
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@6330 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -12655,8 +12655,6 @@ int scst_parse_descriptors(struct scst_cmd *cmd)
|
||||
break;
|
||||
default:
|
||||
sBUG();
|
||||
res = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
TRACE_EXIT_RES(res);
|
||||
|
||||
@@ -2322,7 +2322,6 @@ static int scst_report_supported_opcodes(struct scst_cmd *cmd)
|
||||
break;
|
||||
default:
|
||||
sBUG();
|
||||
goto out_compl;
|
||||
}
|
||||
|
||||
if (length > buf_len)
|
||||
|
||||
Reference in New Issue
Block a user