[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenARM] [PATCH] ns_write_reg() shall not return a value.
This is a void function ... So make sure we don't return anything. Signed-off-by: Jean-Christophe DUBOIS <jcd@xxxxxxxxxxxxxxx> --- xen/drivers/char/ns16550.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index 8d376b8..46f1679 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -125,8 +125,9 @@ static char ns_read_reg(struct ns16550 *uart, int reg) static void ns_write_reg(struct ns16550 *uart, int reg, char c) { if ( uart->remapped_io_base == NULL ) - return outb(c, uart->io_base + reg); - writeb(c, uart->remapped_io_base + reg); + outb(c, uart->io_base + reg); + else + writeb(c, uart->remapped_io_base + reg); } static void ns16550_interrupt( -- 1.7.4.1 _______________________________________________ Xen-arm mailing list Xen-arm@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-arm
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |