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:
Bart Van Assche
2015-06-16 20:08:45 +00:00
parent 020ec68ddc
commit eea3bca1e9
2 changed files with 0 additions and 3 deletions

View File

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

View File

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