mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
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:
parent
d4ae02cc90
commit
fdb51e3d97
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user