]> git.proxmox.com Git - qemu.git/commitdiff
hw/smc91c111: Add explicit 'return' rather than relying on fallthrough
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2013 12:50:55 +0000 (12:50 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:20:44 +0000 (13:20 +0000)
Add an explicit 'return' statement to a case in smc91c111_readb
rather than relying on fallthrough to the following case's
return statement, for code clarity and to placate static analysers.

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

index 36cb4ed74ffb6c0be07543a666363a572e5e8a89..fe2389bf2536a0f491368e1806522b3c37558232 100644 (file)
@@ -442,6 +442,7 @@ static void smc91c111_writeb(void *opaque, hwaddr offset,
             return;
         case 12: /* Early receive.  */
             s->ercv = value & 0x1f;
+            return;
         case 13:
             /* Ignore.  */
             return;