diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 9c08164aa..dcbed6278 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -9965,8 +9965,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 deb8af02f..bed46ed5d 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -2293,7 +2293,6 @@ static int scst_report_supported_opcodes(struct scst_cmd *cmd) break; default: sBUG(); - goto out_compl; } if (length > buf_len)