Skip to content

Commit

Permalink
hw/smc91c111: Add explicit 'return' rather than relying on fallthrough
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pm215 authored and blueswirl committed Jan 26, 2013
1 parent 3095485 commit 89556d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/smc91c111.c
Expand Up @@ -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;
Expand Down

0 comments on commit 89556d1

Please sign in to comment.