mirror of https://gitee.com/openkylin/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 <peter.maydell@linaro.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
3095485029
commit
89556d1725
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue