Received: from eggs.gnu.org ([208.118.235.92]:52073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxHAq-0001UE-8i for qemu-devel@nongnu.org; Mon, 21 Jan 2013 08:12:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxHAn-0000b9-4j for qemu-devel@nongnu.org; Mon, 21 Jan 2013 08:12:28 -0500 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:60058 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxHAm-0000ar-UN for qemu-devel@nongnu.org; Mon, 21 Jan 2013 08:12:25 -0500 From: Peter Maydell Date: Mon, 21 Jan 2013 12:50:55 +0000 Message-Id: <1358772656-7406-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1358772656-7406-1-git-send-email-peter.maydell@linaro.org> References: <1358772656-7406-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 5/6] hw/smc91c111: Add explicit 'return' rather than relying on fallthrough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , patches@linaro.org 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 --- hw/smc91c111.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/smc91c111.c b/hw/smc91c111.c index a34698f..b605069 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; -- 1.7.9.5