Skip to content

Commit

Permalink
V4L/DVB (5965): Frontend_ioctl(): fix check-after-use
Browse files Browse the repository at this point in the history
The Coverity checker spotted that we have already oops'ed if "fe" was NULL.

Since "fe" being NULL seems impossible at this point this patch removes
the NULL check.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 89f4267 commit 813ce47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,

dprintk ("%s\n", __FUNCTION__);

if (!fe || fepriv->exit)
if (fepriv->exit)
return -ENODEV;

if ((file->f_flags & O_ACCMODE) == O_RDONLY &&
Expand Down

0 comments on commit 813ce47

Please sign in to comment.