diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-07-08 06:56:53 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-07-28 09:23:11 +0000 |
commit | 0ed8b6f67f26acc2e88dfc6be4954e63f943bd28 (patch) | |
tree | 8490bfb39362e56f8238ba9208114764bc938d7e /hw/eepro100.c | |
parent | 16fd921bd3a266d321071739cf40785abce4bcb1 (diff) |
Avoid returning void
It's silly and non-conforming to standards to return void,
don't do it.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r-- | hw/eepro100.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c index f343685dbd..e083e0ed14 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1596,10 +1596,17 @@ static void eepro100_write(void *opaque, target_phys_addr_t addr, EEPRO100State *s = opaque; switch (size) { - case 1: return eepro100_write1(s, addr, data); - case 2: return eepro100_write2(s, addr, data); - case 4: return eepro100_write4(s, addr, data); - default: abort(); + case 1: + eepro100_write1(s, addr, data); + break; + case 2: + eepro100_write2(s, addr, data); + break; + case 4: + eepro100_write4(s, addr, data); + break; + default: + abort(); } } |