From 393fce22b92ab98fe66f23dea335e53ee06e8b0e Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 16 May 2004 19:46:52 -0700 Subject: [PATCH] USB: fix build error in drivers/usb/serial/console.c Thanks to Adrian Bunk for pointing this out. --- drivers/usb/serial/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c index d086b64cf5017..237d9d30da612 100644 --- a/drivers/usb/serial/console.c +++ b/drivers/usb/serial/console.c @@ -137,7 +137,7 @@ static int __init usb_console_setup(struct console *co, char *options) /* grab the first serial port that happens to be connected */ serial = usb_serial_get_by_index(0); - if (serial_paranoia_check (serial, __FUNCTION__)) { + if (serial == NULL) { /* no device is connected yet, sorry :( */ err ("No USB device connected to ttyUSB0"); return -ENODEV; -- 2.53.0