projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clk: rockchip: rk3288: fix up the clk register for hclk_vio
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
usb
/
gadget
/
configfs.c
diff --git
a/drivers/usb/gadget/configfs.c
b/drivers/usb/gadget/configfs.c
index 8df96cb3bb582d5d6d8974ba67aea1f5f933569e..54849fe9cb01ed8c6b64ebfc3c3e08edd243af89 100644
(file)
--- a/
drivers/usb/gadget/configfs.c
+++ b/
drivers/usb/gadget/configfs.c
@@
-425,11
+425,6
@@
static int config_usb_cfg_link(
}
f = usb_get_function(fi);
- if (f == NULL) {
- /* Are we trying to symlink PTP without MTP function? */
- ret = -EINVAL; /* Invalid Configuration */
- goto out;
- }
if (IS_ERR(f)) {
ret = PTR_ERR(f);
goto out;