Commit fdb51e3d authored by Dan Carpenter's avatar Dan Carpenter Committed by Felipe Balbi

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent d4ae02cc
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment