projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c3875
)
USB: goku_udc: remove potential null dereference
author
Dan Carpenter
<error27@gmail.com>
Sat, 6 Mar 2010 11:08:56 +0000
(14:08 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 19 Mar 2010 14:24:19 +0000
(07:24 -0700)
"dev" is always null here. In the end it's only used to get the
pci_name() of "pdev" which is redundant information and so I
removed it.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/goku_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/goku_udc.c
b/drivers/usb/gadget/goku_udc.c
index e8edc640381e5bdbd8275b3a580da2ea78a966ab..1088d08c7ed8fac07146bd8d6fbde9d59a1897ca 100644
(file)
--- a/
drivers/usb/gadget/goku_udc.c
+++ b/
drivers/usb/gadget/goku_udc.c
@@
-1768,7
+1768,7
@@
static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
* usb_gadget_driver_{register,unregister}() must change.
*/
if (the_controller) {
-
WARNING(dev,
"ignoring %s\n", pci_name(pdev));
+
pr_warning(
"ignoring %s\n", pci_name(pdev));
return -EBUSY;
}
if (!pdev->irq) {