]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: ov511: cleanup: remove unneeded null check
authorDan Carpenter <error27@gmail.com>
Wed, 5 May 2010 05:59:48 +0000 (02:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:59:13 +0000 (12:59 -0300)
commit3bc8f2b716a7926d20c755f1969a1d3d22c40c8f
treee0647a8c551ca982be1df56d07ca1b3d689d158b
parente2ca7a415e9293643d383cea379eafc91aef8d6e
V4L/DVB: ov511: cleanup: remove unneeded null check

We dereference "ov" unconditionally throughout the function so there is
no way it can be NULL here.  This code has been around for ages so if
it were possible for "ov" to be NULL someone would have complained.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ov511.c