summaryrefslogtreecommitdiffstats
path: root/hw/smc91c111.c
diff options
context:
space:
mode:
authorPeter Maydell2013-01-21 13:50:55 +0100
committerBlue Swirl2013-01-26 14:20:44 +0100
commit89556d1725d7c10a54ec66087e940727873f38a3 (patch)
treefaba1404350a48abdf05e8a4692a2f0d8a8cf8e6 /hw/smc91c111.c
parenthw/pflash_cfi02.c: Mark deliberate fallthrough (diff)
downloadqemu-89556d1725d7c10a54ec66087e940727873f38a3.tar.gz
qemu-89556d1725d7c10a54ec66087e940727873f38a3.tar.xz
qemu-89556d1725d7c10a54ec66087e940727873f38a3.zip
hw/smc91c111: Add explicit 'return' rather than relying on fallthrough
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>
Diffstat (limited to 'hw/smc91c111.c')
-rw-r--r--hw/smc91c111.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/smc91c111.c b/hw/smc91c111.c
index 36cb4ed74f..fe2389bf25 100644
--- a/hw/smc91c111.c
+++ b/hw/smc91c111.c
@@ -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;