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:
Bart Van Assche
2015-04-14 10:56:47 +02:00
parent bf9d2668a5
commit 2d467580d1
2 changed files with 0 additions and 3 deletions

View File

@@ -9965,8 +9965,6 @@ int scst_parse_descriptors(struct scst_cmd *cmd)
break;
default:
sBUG();
res = -1;
break;
}
TRACE_EXIT_RES(res);

View File

@@ -2293,7 +2293,6 @@ static int scst_report_supported_opcodes(struct scst_cmd *cmd)
break;
default:
sBUG();
goto out_compl;
}
if (length > buf_len)