提交 fdb51e3d 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册