projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
719a6e8
)
USB: core: hub: fix sparse warning
author
Felipe Balbi
<felipe.balbi@nokia.com>
Fri, 4 Dec 2009 13:47:43 +0000
(15:47 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Dec 2009 19:55:27 +0000
(11:55 -0800)
Fix the following sparse warning:
drivers/usb/core/hub.c:1664:37: warning: Using plain integer as NULL pointer
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/hub.c
b/drivers/usb/core/hub.c
index e4b0e28f7453e0bd2968fd740a3a0567854e700b..06af970e10641a7fd884cd9cb857a8a5e3c12382 100644
(file)
--- a/
drivers/usb/core/hub.c
+++ b/
drivers/usb/core/hub.c
@@
-1676,7
+1676,7
@@
static int usb_configure_device_otg(struct usb_device *udev)
if (!udev->bus->is_b_host
&& udev->config
&& udev->parent == udev->bus->root_hub) {
- struct usb_otg_descriptor *desc =
0
;
+ struct usb_otg_descriptor *desc =
NULL
;
struct usb_bus *bus = udev->bus;
/* descriptor may appear anywhere in config */