diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 076d1e61b..43a80154e 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -12655,8 +12655,6 @@ int scst_parse_descriptors(struct scst_cmd *cmd) break; default: sBUG(); - res = -1; - break; } TRACE_EXIT_RES(res); diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 2103ca260..17aa700a0 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -2322,7 +2322,6 @@ static int scst_report_supported_opcodes(struct scst_cmd *cmd) break; default: sBUG(); - goto out_compl; } if (length > buf_len)