projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b932225
)
usb: chipidea: drop redundant NULL check
author
Alexander Shishkin
<
[email protected]
>
Fri, 11 May 2012 14:25:51 +0000
(17:25 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 11 May 2012 23:54:11 +0000
(16:54 -0700)
Currently, gadget can't be NULL in _gadget_stop_activity().
Signed-off-by: Alexander Shishkin <
[email protected]
>
Reported-by: Michael Grzeschik <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/chipidea/udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/chipidea/udc.c
b/drivers/usb/chipidea/udc.c
index ddd27d3443f8c30423f4df4f32facafb3caac2b0..bdb034420fc601682744603344bf5e146ebc414a 100644
(file)
--- a/
drivers/usb/chipidea/udc.c
+++ b/
drivers/usb/chipidea/udc.c
@@
-583,9
+583,6
@@
static int _gadget_stop_activity(struct usb_gadget *gadget)
struct ci13xxx *udc = container_of(gadget, struct ci13xxx, gadget);
unsigned long flags;
- if (gadget == NULL)
- return -EINVAL;
-
spin_lock_irqsave(&udc->lock, flags);
udc->gadget.speed = USB_SPEED_UNKNOWN;
udc->remote_wakeup = 0;