aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/sh_timer.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2020-10-20 17:39:35 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-10-27 00:22:56 +0100
commit45514b48df9d46478b10929cdfe1b74f01dceb99 (patch)
tree22785bf4a7d9632b12d708a06faee6c37f56138a /hw/timer/sh_timer.c
parent97edd8ba4b167b6adfbda9598280e5b31270fd40 (diff)
downloadqemu-45514b48df9d46478b10929cdfe1b74f01dceb99.zip
qemu-45514b48df9d46478b10929cdfe1b74f01dceb99.tar.gz
qemu-45514b48df9d46478b10929cdfe1b74f01dceb99.tar.bz2
hw/timer/sh_timer: Remove superfluous "break" statements
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>
Diffstat (limited to 'hw/timer/sh_timer.c')
-rw-r--r--hw/timer/sh_timer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c
index 934daaa..58af1a1 100644
--- a/hw/timer/sh_timer.c
+++ b/hw/timer/sh_timer.c
@@ -125,7 +125,6 @@ static void sh_timer_write(void *opaque, hwaddr offset,
/* fallthrough */
default:
hw_error("sh_timer_write: Reserved TPSC value\n");
- break;
}
switch ((value & TIMER_TCR_CKEG) >> 3) {
case 0:
@@ -139,7 +138,6 @@ static void sh_timer_write(void *opaque, hwaddr offset,
/* fallthrough */
default:
hw_error("sh_timer_write: Reserved CKEG value\n");
- break;
}
switch ((value & TIMER_TCR_ICPE) >> 6) {
case 0:
@@ -152,7 +150,6 @@ static void sh_timer_write(void *opaque, hwaddr offset,
/* fallthrough */
default:
hw_error("sh_timer_write: Reserved ICPE value\n");
- break;
}
if ((value & TIMER_TCR_UNF) == 0) {
s->int_level = 0;