usb: gadget: uvc: remove an impossible condition

"num" is a u32 so "(num > 0xFFFFFFFF)" is never true.  Also the range
is already checked in kstrtou32().

Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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-01-15 00:02:18 +03:00 committed by Felipe Balbi
parent df90f83819
commit ceeb010ba2
1 changed files with 0 additions and 2 deletions

View File

@ -1156,8 +1156,6 @@ static inline int __uvcg_fill_frm_intrv(char *buf, void *priv)
ret = kstrtou32(buf, 0, &num);
if (ret)
return ret;
if (num > 0xFFFFFFFF)
return -EINVAL;
interv = priv;
**interv = cpu_to_le32(num);