From: Ying Xue Date: Mon, 6 Aug 2012 09:46:37 +0000 (+0800) Subject: USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a816e3113b63753c330ca4751ea1d208e93e3015;p=openwrt%2Fstaging%2Fblogic.git USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer Pointers should not be compared to plain integers. Quiets the sparse warning: warning: Using plain integer as NULL pointer Signed-off-by: Ying Xue Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index bc912e5a3beb..70688cba95e3 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -2106,7 +2106,7 @@ static void ftdi_set_termios(struct tty_struct *tty, cflag = termios->c_cflag; - if (old_termios == 0) + if (!old_termios) goto no_skip; if (old_termios->c_cflag == termios->c_cflag