From: Peter Maydell Date: Mon, 21 Jan 2013 12:50:55 +0000 (+0000) Subject: hw/smc91c111: Add explicit 'return' rather than relying on fallthrough X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=89556d1725d7c10a54ec66087e940727873f38a3;p=qemu.git 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 Signed-off-by: Blue Swirl --- 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;