[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4FCE37CF.90902@xenotime.net>
Date: Tue, 05 Jun 2012 09:46:07 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: LKML <linux-kernel@...r.kernel.org>, linux-serial@...r.kernel.org
CC: Alan Cox <alan@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: serial: fix serial_txx9.c build warning/typo
From: Randy Dunlap <rdunlap@...otime.net>
Fix kconfig symbol test to use "defined":
drivers/tty/serial/serial_txx9.c: warning: "CONFIG_CONSOLE_POLL" is not defined [-Wundef]
Reported-by: Geert Uytterhoeven <geert@...ux-m68k.org>
Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
---
drivers/tty/serial/serial_txx9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lnx-35-rc1.orig/drivers/tty/serial/serial_txx9.c
+++ lnx-35-rc1/drivers/tty/serial/serial_txx9.c
@@ -466,7 +466,7 @@ static void serial_txx9_break_ctl(struct
spin_unlock_irqrestore(&up->port.lock, flags);
}
-#if defined(CONFIG_SERIAL_TXX9_CONSOLE) || (CONFIG_CONSOLE_POLL)
+#if defined(CONFIG_SERIAL_TXX9_CONSOLE) || defined(CONFIG_CONSOLE_POLL)
/*
* Wait for transmitter & holding register to empty
*/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists