projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279daf4
)
USB: adutux: drop redundant sanity check
author
Johan Hovold
<johan@kernel.org>
Fri, 17 Mar 2017 10:35:32 +0000
(11:35 +0100)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/adutux.c
b/drivers/usb/misc/adutux.c
index db9a9e6ff6bee9c74840b7f5734b086795a090fa..f0116d12046850e2c0fb844412117cf79d197286 100644
(file)
--- 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) {