diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-03 13:51:52 -0800 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-03 13:51:52 -0800 |
commit | 831376e2cfb73403a9bba2be23e9c8ce1ec20c3b (patch) | |
tree | 71b4499158597424324fd10bf83bedb910f53be8 /linux/drivers/media/video/cx88/cx88.h | |
parent | fa9f1bcf738c7685a6c6ac771f75275cc86a5e85 (diff) | |
download | mediapointer-dvb-s2-831376e2cfb73403a9bba2be23e9c8ce1ec20c3b.tar.gz mediapointer-dvb-s2-831376e2cfb73403a9bba2be23e9c8ce1ec20c3b.tar.bz2 |
videodev: not possible to register NULL video_device
From: Trent Piepho <xyzzy@speakeasy.org>
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.
Priority: normal
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88.h')
0 files changed, 0 insertions, 0 deletions