[ 3.5.y.z extended stable ] Patch "USB: ftdi_sio: Quiet sparse noise about using plain integer" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Wed Jun 12 13:21:15 UTC 2013
This is a note to let you know that I have just added a patch titled
USB: ftdi_sio: Quiet sparse noise about using plain integer
to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From b4e1a8cedd9895904e768e888f04d47caad0c943 Mon Sep 17 00:00:00 2001
From: Ying Xue <ying.xue at windriver.com>
Date: Mon, 6 Aug 2012 17:46:37 +0800
Subject: [PATCH] USB: ftdi_sio: Quiet sparse noise about using plain integer
was NULL pointer
commit a816e3113b63753c330ca4751ea1d208e93e3015 upstream.
Pointers should not be compared to plain integers.
Quiets the sparse warning:
warning: Using plain integer as NULL pointer
Signed-off-by: Ying Xue <ying.xue at windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
drivers/usb/serial/ftdi_sio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 45e80a7..3dbec15 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -2137,7 +2137,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
--
1.8.1.2
More information about the kernel-team
mailing list