From: Johan Hovold Date: Fri, 17 Mar 2017 10:35:32 +0000 (+0100) Subject: USB: adutux: drop redundant sanity check X-Git-Tag: v4.14-rc1~993^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15a818f459d2081b17861472b4b953b8a19ea587;p=platform%2Fkernel%2Flinux-rpi.git USB: adutux: drop redundant sanity check Drop a redundant sanity check for a NULL parent usb device, which is never true. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index db9a9e6..f0116d1 100644 --- a/drivers/usb/misc/adutux.c +++ b/drivers/usb/misc/adutux.c @@ -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) {