diff mbox

[3.5.y.z,extended,stable] Patch "USB: ftdi_sio: Quiet sparse noise about using plain integer" has been added to staging queue

Message ID 1371043275-12288-1-git-send-email-luis.henriques@canonical.com
State New
Headers show

Commit Message

Luis Henriques June 12, 2013, 1:21 p.m. UTC
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@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@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
 drivers/usb/serial/ftdi_sio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
1.8.1.2
diff mbox

Patch

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