mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
[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>
This commit is contained in:
parent
79019190a4
commit
daf41ac2c4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user