mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01: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. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -9965,8 +9965,6 @@ int scst_parse_descriptors(struct scst_cmd *cmd)
|
||||
break;
|
||||
default:
|
||||
sBUG();
|
||||
res = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
TRACE_EXIT_RES(res);
|
||||
|
||||
@@ -2293,7 +2293,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