diff options
Diffstat (limited to 'hw/lan9118.c')
-rw-r--r-- | hw/lan9118.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/lan9118.c b/hw/lan9118.c index 40fb7654f4..61f1c0e63b 100644 --- a/hw/lan9118.c +++ b/hw/lan9118.c @@ -1166,9 +1166,11 @@ static void lan9118_16bit_mode_write(void *opaque, target_phys_addr_t offset, { switch (size) { case 2: - return lan9118_writew(opaque, offset, (uint32_t)val); + lan9118_writew(opaque, offset, (uint32_t)val); + return; case 4: - return lan9118_writel(opaque, offset, val, size); + lan9118_writel(opaque, offset, val, size); + return; } hw_error("lan9118_write: Bad size 0x%x\n", size); |