V4L/DVB: V4L2: Replace loops for finding max buffers in VIDIOC_REQBUFS callbacks
Andreas Bombe authored

Due to obvious copy and paste coding a number of video capture drivers
which implement a limit on the buffer memory decremented the user
supplied buffer count in a while loop until it reaches an acceptable
value.

This is a silly thing to do when the maximum value can be directly
computed.
Signed-off-by: default avatarAndreas Bombe <aeb@debian.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
dab7e310
Name Last commit Last update
..
IR
common
dvb
radio
video
Kconfig
Makefile