diff options
author | Matt Turner <mattst88@gmail.com> | 2009-10-13 20:40:59 -0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-10-15 13:54:49 +1000 |
commit | 13c5e2fe9c7ce82dfdc026a392327b115d8c6a15 (patch) | |
tree | ceb0fb1bc84d3ea5472b48957b60bf00cbd71d3a /hw | |
parent | fff0b2013ad40c6116e92a9c5e233da4a34e6943 (diff) |
[alpha] don't return from void functions
Signed-off-by: Matt Turner <mattst88@gmail.com>
(cherry picked from commit 46785c04bca16f495af3ed8d685aee939a1a8f39)
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_ev56.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_ev56.c b/hw/xfree86/os-support/linux/lnx_ev56.c index e751da2d0..c65e1cca4 100644 --- a/hw/xfree86/os-support/linux/lnx_ev56.c +++ b/hw/xfree86/os-support/linux/lnx_ev56.c @@ -94,28 +94,34 @@ writeDense32(int Value, pointer Base, register unsigned long Offset) void _dense_outb(char val, unsigned long port) { - if ((port & ~0xffff) == 0) return _outb(val, port); - + if ((port & ~0xffff) == 0) { + _outb(val, port); + } else { write_mem_barrier(); *(volatile CARD8 *)port = val; + } } void _dense_outw(short val, unsigned long port) { - if ((port & ~0xffff) == 0) return _outw(val, port); - + if ((port & ~0xffff) == 0) { + _outw(val, port); + } else { write_mem_barrier(); *(volatile CARD16 *)port = val; + } } void _dense_outl(int val, unsigned long port) { - if ((port & ~0xffff) == 0) return _outl(val, port); - + if ((port & ~0xffff) == 0) { + _outl(val, port); + } else { write_mem_barrier(); *(volatile CARD32 *)port = val; + } } unsigned int |