]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: adutux: drop redundant sanity check
authorJohan Hovold <johan@kernel.org>
Fri, 17 Mar 2017 10:35:32 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:53:16 +0000 (13:53 +0100)
Drop a redundant sanity check for a NULL parent usb device, which is
never true.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/adutux.c

index db9a9e6ff6bee9c74840b7f5734b086795a090fa..f0116d12046850e2c0fb844412117cf79d197286 100644 (file)
@@ -662,11 +662,6 @@ static int adu_probe(struct usb_interface *interface,
        int out_end_size;
        int i;
 
-       if (udev == NULL) {
-               dev_err(&interface->dev, "udev is NULL.\n");
-               goto exit;
-       }
-
        /* allocate memory for our device state and initialize it */
        dev = kzalloc(sizeof(struct adu_device), GFP_KERNEL);
        if (!dev) {