summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/or51132.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-10-24 00:10:35 +0000
committerJohannes Stezenbach <devnull@localhost>2005-10-24 00:10:35 +0000
commita09b6b8851c72d9ac3a178cd9ecfe5e075c6d52f (patch)
treebfa489f2cef515181bd2f777280ff8122ac98b83 /linux/drivers/media/dvb/frontends/or51132.c
parent575f44e16d90ff185f7dde17955967e6d4b3e603 (diff)
downloadmediapointer-dvb-s2-a09b6b8851c72d9ac3a178cd9ecfe5e075c6d52f.tar.gz
mediapointer-dvb-s2-a09b6b8851c72d9ac3a178cd9ecfe5e075c6d52f.tar.bz2
From: Jesper Juhl <jesper.juhl@gmail.com>
This is the drivers/media/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in drivers/media/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Cc: Johannes Stezenbach <js@linuxtv.org> Cc: Michael Krufky <mkrufky@m1k.net> Cc: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/or51132.c')
-rw-r--r--linux/drivers/media/dvb/frontends/or51132.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/or51132.c b/linux/drivers/media/dvb/frontends/or51132.c
index a0e5091d9..87ad6118d 100644
--- a/linux/drivers/media/dvb/frontends/or51132.c
+++ b/linux/drivers/media/dvb/frontends/or51132.c
@@ -580,8 +580,7 @@ struct dvb_frontend* or51132_attach(const struct or51132_config* config,
return &state->frontend;
error:
- if (state)
- kfree(state);
+ kfree(state);
return NULL;
}