From 7a7f291374325aa2393513c2b3893feeac5c306d Mon Sep 17 00:00:00 2001 From: Sergei Shtylyov Date: Mon, 4 Sep 2006 00:04:20 +0400 Subject: [PATCH] --- yaml --- r: 38214 b: refs/heads/master c: 6c6a2334a1e8af7c3eaab992732825fa9ade77cf h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/serial/serial_core.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index a75d21b3b157..b881e49cb3f4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a4b775735c0dff5a8d59a877ff0033526b469116 +refs/heads/master: 6c6a2334a1e8af7c3eaab992732825fa9ade77cf diff --git a/trunk/drivers/serial/serial_core.c b/trunk/drivers/serial/serial_core.c index 5f7ba1adb309..d7e28ab4c313 100644 --- a/trunk/drivers/serial/serial_core.c +++ b/trunk/drivers/serial/serial_core.c @@ -1662,16 +1662,16 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i) struct uart_port *port = state->port; char stat_buf[32]; unsigned int status; - int ret; + int mmio, ret; if (!port) return 0; + mmio = port->iotype >= UPIO_MEM; ret = sprintf(buf, "%d: uart:%s %s%08lX irq:%d", port->line, uart_type(port), - port->iotype == UPIO_MEM ? "mmio:0x" : "port:", - port->iotype == UPIO_MEM ? port->mapbase : - (unsigned long) port->iobase, + mmio ? "mmio:0x" : "port:", + mmio ? port->mapbase : (unsigned long) port->iobase, port->irq); if (port->type == PORT_UNKNOWN) {