diff options
author | Oliver Neukum <oneukum@suse.de> | 2014-01-23 07:28:24 -0300 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:54:42 +0900 |
commit | 4f442783907c103b07a3539d26510ca3d5f2b48a (patch) | |
tree | fbf4af3b5956292cb7d649b3d979fc430322af58 /drivers/media/usb/uvc | |
parent | 3a46db314fbc211da1d0d626137166f53caa3f6b (diff) | |
download | linux-3.10-4f442783907c103b07a3539d26510ca3d5f2b48a.tar.gz linux-3.10-4f442783907c103b07a3539d26510ca3d5f2b48a.tar.bz2 linux-3.10-4f442783907c103b07a3539d26510ca3d5f2b48a.zip |
upstream: [media] uvcvideo: Simplify redundant check
x < constant implies x + unsigned < constant
That check just obfuscates the code
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/uvc')
-rw-r--r-- | drivers/media/usb/uvc/uvc_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index c3bb2502225..b6cac17c238 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -925,7 +925,7 @@ static int uvc_parse_standard_control(struct uvc_device *dev, case UVC_VC_HEADER: n = buflen >= 12 ? buffer[11] : 0; - if (buflen < 12 || buflen < 12 + n) { + if (buflen < 12 + n) { uvc_trace(UVC_TRACE_DESCR, "device %d videocontrol " "interface %d HEADER error\n", udev->devnum, alts->desc.bInterfaceNumber); |