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:
d4ae02c
)
usb: gadget: printer: delete some dead code
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 13 Mar 2015 09:11:06 +0000
(12:11 +0300)
committer
Felipe Balbi
<balbi@ti.com>
Fri, 13 Mar 2015 15:40:57 +0000
(10:40 -0500)
"num" is a u16 so it can't go higher than 65535. kstrtou16() has a
range check built in so this is already handled.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_printer.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/function/f_printer.c
b/drivers/usb/gadget/function/f_printer.c
index 757fcf070013c27e01cdd2e2a523b2daa0250cee..caa56de3a3e865422c566bf5862550cf36d69fd1 100644
(file)
--- a/
drivers/usb/gadget/function/f_printer.c
+++ b/
drivers/usb/gadget/function/f_printer.c
@@
-1223,11
+1223,6
@@
static ssize_t f_printer_opts_q_len_store(struct f_printer_opts *opts,
if (ret)
goto end;
- if (num > 65535) {
- ret = -EINVAL;
- goto end;
- }
-
opts->q_len = (unsigned)num;
ret = len;
end: