Title: [7341] trunk/drivers/serial/bfin_5xx.c: Task[#5518] should return NULL in earlyprintk console init.
- Revision
- 7341
- Author
- sonicz
- Date
- 2009-09-15 05:47:05 -0400 (Tue, 15 Sep 2009)
Log Message
Task[#5518] should return NULL in earlyprintk console init.
Modified Paths
Diff
Modified: trunk/drivers/serial/bfin_5xx.c (7340 => 7341)
--- trunk/drivers/serial/bfin_5xx.c 2009-09-15 09:24:31 UTC (rev 7340)
+++ trunk/drivers/serial/bfin_5xx.c 2009-09-15 09:47:05 UTC (rev 7341)
@@ -1321,7 +1321,6 @@
{
struct bfin_serial_port *uart;
struct ktermios t;
- int ret;
#ifdef CONFIG_SERIAL_BFIN_CONSOLE
/*
@@ -1333,9 +1332,8 @@
if (port == -1 || port >= nr_active_ports)
port = 0;
- ret = bfin_serial_init_ports();
- if (ret)
- return ret;
+ if (bfin_serial_init_ports())
+ return NULL;
bfin_early_serial_console.index = port;
uart = &bfin_serial_ports[port];
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits