]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: remove useless check in mos7840 found by coverity
authorOliver Neukum <oneukum@suse.de>
Wed, 2 May 2007 08:17:50 +0000 (10:17 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 May 2007 06:45:48 +0000 (23:45 -0700)
this useless check should be removed.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/mos7840.c

index 2366e7b63ece5679c0a00f80446ff5577d70bd76..36620c651079ccb4b20e8bde21e0f2df6581c226 100644 (file)
@@ -769,11 +769,6 @@ static void mos7840_bulk_out_data_callback(struct urb *urb)
                return;
        }
 
-       if (!mos7840_port) {
-               dbg("%s", "NULL mos7840_port pointer \n");
-               return;
-       }
-
        if (mos7840_port_paranoia_check(mos7840_port->port, __FUNCTION__)) {
                dbg("%s", "Port Paranoia failed \n");
                return;