This is a note to let you know that I've just added the patch titled

    USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL pointer

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     
usb-ftdi_sio-quiet-sparse-noise-about-using-plain-integer-was-null-pointer.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From a816e3113b63753c330ca4751ea1d208e93e3015 Mon Sep 17 00:00:00 2001
From: Ying Xue <[email protected]>
Date: Mon, 6 Aug 2012 17:46:37 +0800
Subject: USB: ftdi_sio: Quiet sparse noise about using plain integer was NULL 
pointer

From: Ying Xue <[email protected]>

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 <[email protected]>
Cc: Lotfi Manseur <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/usb/serial/ftdi_sio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -2141,7 +2141,7 @@ static void ftdi_set_termios(struct tty_
 
        cflag = termios->c_cflag;
 
-       if (old_termios == 0)
+       if (!old_termios)
                goto no_skip;
 
        if (old_termios->c_cflag == termios->c_cflag


Patches currently in stable-queue which might be from [email protected] are

queue-3.0/usb-ftdi_sio-quiet-sparse-noise-about-using-plain-integer-was-null-pointer.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to