]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9911): em28xx: vidioc_try_fmt_vid_cap() doesn't need any lock
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Dec 2008 23:36:13 +0000 (20:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:14 +0000 (09:39 -0200)
commitacbf1232fd336376c1c0d31ca185567922ff1a04
treea23a6fd92f7a3422b14a63956e88a56337c0ca43
parentde2fb60b7cce69bd9b665a90ae0d8b8e8b1da77f
V4L/DVB (9911): em28xx: vidioc_try_fmt_vid_cap() doesn't need any lock

vidioc_try_fmt_vid_cap() just checks if a given resolution is supported.
It doesn't touch on struct em28xx device descriptor. so, there's no need
to lock.

While there, use unlikely() for those values that aren't likely to
occur.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c