diff options
author | Liao Pingfang | 2020-07-13 11:05:26 +0200 |
---|---|---|
committer | Laurent Vivier | 2020-09-01 08:38:00 +0200 |
commit | 830b92509459180eaab986bb37173fd07ba6db53 (patch) | |
tree | 6fac391d59e1c1dc56e895bf0171693ce6631e07 /hw/gpio | |
parent | block/vmdk: Remove superfluous breaks (diff) | |
download | qemu-830b92509459180eaab986bb37173fd07ba6db53.tar.gz qemu-830b92509459180eaab986bb37173fd07ba6db53.tar.xz qemu-830b92509459180eaab986bb37173fd07ba6db53.zip |
hw: Remove superfluous breaks
Remove superfluous breaks, as there is a "return" before them.
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1594631126-36631-1-git-send-email-wang.yi59@zte.com.cn>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/gpio')
-rw-r--r-- | hw/gpio/max7310.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/gpio/max7310.c b/hw/gpio/max7310.c index bebb4030d2..4f78774dc8 100644 --- a/hw/gpio/max7310.c +++ b/hw/gpio/max7310.c @@ -51,11 +51,9 @@ static uint8_t max7310_rx(I2CSlave *i2c) switch (s->command) { case 0x00: /* Input port */ return s->level ^ s->polarity; - break; case 0x01: /* Output port */ return s->level & ~s->direction; - break; case 0x02: /* Polarity inversion */ return s->polarity; @@ -65,7 +63,6 @@ static uint8_t max7310_rx(I2CSlave *i2c) case 0x04: /* Timeout */ return s->status; - break; case 0xff: /* Reserved */ return 0xff; |