]> git.proxmox.com Git - qemu.git/commitdiff
hw/arm_sysctl.c: Add missing 'break' statements
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2013 12:50:51 +0000 (12:50 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:20:43 +0000 (13:20 +0000)
Add some break statements that were accidentally omitted
from some cases of arm_sysctl_write(). The omission was
harmless because in both cases the following case did
an immediate break, but adding the breaks explicitly
placates static analysers and avoids weird behaviour if
the following register is ever implemented as something
other than a no-op.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/arm_sysctl.c

index 755a5df2c9fac9b1d24eaf7ecaa996fbd463ebea..da36f8a4357c2f79c7744dc8871ec229aac3877b 100644 (file)
@@ -199,6 +199,7 @@ static void arm_sysctl_write(void *opaque, hwaddr offset,
     switch (offset) {
     case 0x08: /* LED */
         s->leds = val;
+        break;
     case 0x0c: /* OSC0 */
     case 0x10: /* OSC1 */
     case 0x14: /* OSC2 */
@@ -295,6 +296,7 @@ static void arm_sysctl_write(void *opaque, hwaddr offset,
             /* On VExpress this register is unimplemented and will RAZ/WI */
             break;
         }
+        break;
     case 0x54: /* CLCDSER */
     case 0x64: /* DMAPSR0 */
     case 0x68: /* DMAPSR1 */