]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (10791): videodev: not possible to register NULL video_device
authorTrent Piepho <xyzzy@speakeasy.org>
Tue, 3 Mar 2009 21:51:52 +0000 (18:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:03 +0000 (12:43 -0300)
commit428c8d19167c4597adf4d164262c68befafde9bf
tree74cfa599a39f69de3ded168a7e343bfa0b520483
parentf985c7006756cb7da452815d4bf040c02decd044
V4L/DVB (10791): videodev: not possible to register NULL video_device

video_register_device_index() checks if it was passed a NULL video_device
pointer (which isn't allowed) _after_ it has already dereferenced it with
video_get_drvdata(vdev).  The checks are clearly pointless and can be
removed, as the function would have crashed before reaching them if vdev
ever was NULL.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c