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>
This commit is contained in:
Dan Carpenter 2015-03-13 12:11:06 +03:00 committed by Felipe Balbi
parent d4ae02cc90
commit fdb51e3d97

View File

@ -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: