hw_error() is marked as QEMU_NORETURN, so the "break" statements
after this function are just dead code.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <
20201020153935.54315-4-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
/* fallthrough */
default:
hw_error("sh_timer_write: Reserved TPSC value\n");
- break;
}
switch ((value & TIMER_TCR_CKEG) >> 3) {
case 0:
/* fallthrough */
default:
hw_error("sh_timer_write: Reserved CKEG value\n");
- break;
}
switch ((value & TIMER_TCR_ICPE) >> 6) {
case 0:
/* fallthrough */
default:
hw_error("sh_timer_write: Reserved ICPE value\n");
- break;
}
if ((value & TIMER_TCR_UNF) == 0) {
s->int_level = 0;