summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-17 11:35:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-23 13:53:16 +0100
commit15a818f459d2081b17861472b4b953b8a19ea587 (patch)
treefc6ccef46c195990bfada3c6292bc587c166002c /drivers/usb/misc
parentUSB: core: add helpers to retrieve endpoints in reverse order (diff)
downloadlinux-15a818f459d2081b17861472b4b953b8a19ea587.tar.xz
linux-15a818f459d2081b17861472b4b953b8a19ea587.zip
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 <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r--drivers/usb/misc/adutux.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index db9a9e6ff6be..f0116d120468 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) {