summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-02-06 09:43:58 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 19:10:57 +0100
commit62bdbb735c0415c2ffdddc2269a860a76f7f716a (patch)
tree6f46610dcccc749ab3c08a09e6c74d64811c5935 /drivers/media/dvb
parentV4L/DVB: dst: fixes for DVB-C Twinhan VP2031 (diff)
downloadlinux-62bdbb735c0415c2ffdddc2269a860a76f7f716a.tar.xz
linux-62bdbb735c0415c2ffdddc2269a860a76f7f716a.zip
V4L/DVB: drivers/media: Correct NULL test
In each case, the NULL test has been performed already. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when forall return ...; } ... when != goto l; when != x = e when != &x *x == NULL // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/stv0900_core.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c
index e5791b2b913b..01f8f1f802fd 100644
--- a/drivers/media/dvb/frontends/stv0900_core.c
+++ b/drivers/media/dvb/frontends/stv0900_core.c
@@ -1417,11 +1417,6 @@ static enum fe_stv0900_error stv0900_init_internal(struct dvb_frontend *fe,
return error;
}
- if (state->internal == NULL) {
- error = STV0900_INVALID_HANDLE;
- return error;
- }
-
intp = state->internal;
intp->demod_mode = p_init->demod_mode;