From: Trent Piepho Date: Tue, 3 Mar 2009 21:51:52 +0000 (-0300) Subject: V4L/DVB (10791): videodev: not possible to register NULL video_device X-Git-Tag: v2.6.30-rc1~621^2~372 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=428c8d19167c4597adf4d164262c68befafde9bf;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed