projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f4267
)
V4L/DVB (5965): Frontend_ioctl(): fix check-after-use
author
Adrian Bunk
<bunk@stusta.de>
Wed, 1 Aug 2007 13:13:36 +0000
(10:13 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:22 +0000
(22:04 -0300)
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>
drivers/media/dvb/dvb-core/dvb_frontend.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-core/dvb_frontend.c
b/drivers/media/dvb/dvb-core/dvb_frontend.c
index afe797b75de4cfcd65b6046ffb7b59155e30da1e..fd9bac5eb25e34782e52f06c823f5577bf628c74 100644
(file)
--- a/
drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/
drivers/media/dvb/dvb-core/dvb_frontend.c
@@
-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 &&