diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-01-15 00:02:18 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-19 21:53:31 +0300 |
commit | ceeb010ba2534f0b78efde6b3aa7d208148df92f (patch) | |
tree | 8547c0292a8c06ec7fef22f99c826432a8e5bb82 /drivers/usb/gadget/function/uvc_configfs.c | |
parent | df90f8381972369ff33580e5c4b3c3eea91cc91b (diff) | |
download | linux-ceeb010ba2534f0b78efde6b3aa7d208148df92f.tar.xz |
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>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_configfs.c')
-rw-r--r-- | drivers/usb/gadget/function/uvc_configfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/uvc_configfs.c b/drivers/usb/gadget/function/uvc_configfs.c index ff3058866a14..6d9c68163fe1 100644 --- a/drivers/usb/gadget/function/uvc_configfs.c +++ b/drivers/usb/gadget/function/uvc_configfs.c @@ -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); |