From 0ed8b6f67f26acc2e88dfc6be4954e63f943bd28 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 8 Jul 2012 06:56:53 +0000 Subject: Avoid returning void It's silly and non-conforming to standards to return void, don't do it. Signed-off-by: Blue Swirl --- hw/ide/via.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/ide/via.c') diff --git a/hw/ide/via.c b/hw/ide/via.c index eec5136..a17f2e2 100644 --- a/hw/ide/via.c +++ b/hw/ide/via.c @@ -74,7 +74,8 @@ static void bmdma_write(void *opaque, target_phys_addr_t addr, #endif switch (addr & 3) { case 0: - return bmdma_cmd_writeb(bm, val); + bmdma_cmd_writeb(bm, val); + break; case 2: bm->status = (val & 0x60) | (bm->status & 1) | (bm->status & ~val & 0x06); break; -- cgit v1.1