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:
2360e4a
)
usbcore: remove unneeded error check
author
Alan Stern
<stern@rowland.harvard.edu>
Fri, 15 Dec 2006 21:04:52 +0000
(16:04 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 7 Feb 2007 23:44:33 +0000
(15:44 -0800)
This patch (as830) removes some unnecessary error checking. According
to the kerneldoc, schedule_work() can't fail.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/message.c
b/drivers/usb/core/message.c
index 149aa8bfb1fe4e2bb353ae49f490e7dc081ea48a..8aca3574c2b5f4c715e5ea70052c0fea328695d7 100644
(file)
--- a/
drivers/usb/core/message.c
+++ b/
drivers/usb/core/message.c
@@
-1545,11
+1545,7
@@
int usb_driver_set_configuration(struct usb_device *udev, int config)
INIT_WORK(&req->work, driver_set_config_work);
usb_get_dev(udev);
- if (!schedule_work(&req->work)) {
- usb_put_dev(udev);
- kfree(req);
- return -EINVAL;
- }
+ schedule_work(&req->work);
return 0;
}
EXPORT_SYMBOL_GPL(usb_driver_set_configuration);