aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-03-13 05:11:06 -0400
committerFelipe Balbi <balbi@ti.com>2015-03-13 11:40:57 -0400
commitfdb51e3d97552413c851bf8426ef69508389df88 (patch)
tree60678de18dcb6d4bf2217f00fd63ecf31e8064e3 /drivers/usb/gadget
parentd4ae02cc904d916ea6b292e61b79fd3497054067 (diff)
usb: gadget: printer: delete some dead code
"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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/function/f_printer.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/gadget/function/f_printer.c b/drivers/usb/gadget/function/f_printer.c
index 757fcf070013..caa56de3a3e8 100644
--- 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,
1223 if (ret) 1223 if (ret)
1224 goto end; 1224 goto end;
1225 1225
1226 if (num > 65535) {
1227 ret = -EINVAL;
1228 goto end;
1229 }
1230
1231 opts->q_len = (unsigned)num; 1226 opts->q_len = (unsigned)num;
1232 ret = len; 1227 ret = len;
1233end: 1228end: