[media] uvcvideo: Remove duplicate check for number of buffers in queue_setup
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 18 Feb 2014 13:02:50 +0000 (10:02 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 16:22:27 +0000 (13:22 -0300)
commitccc135c380338ccc6643f6dd7f16000ae7384a13
treef76b672ab106adb264975a7b92a18b1d2435ed2e
parent79af67e77f86404e77e65ad954bfe5030db2ca02
[media] uvcvideo: Remove duplicate check for number of buffers in queue_setup

videobuf2 already ensures that the number of buffers will not exceed
VIDEO_MAX_FRAME, which is equal to our arbitraty limit of
UVC_MAX_VIDEO_BUFFERS. Remove the duplicate check.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvcvideo.h