summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/cx24113.c
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2009-02-23 16:26:38 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 17:42:52 +0200
commit8420fa7ee22c1d681549ff7ab0466ceda5a911c2 (patch)
tree62e85db6e66870efa58df24dd69a9c2f8784e5d1 /drivers/media/dvb/frontends/cx24113.c
parentV4L/DVB (10657): [PATCH] V4L: missing parentheses? (diff)
downloadlinux-8420fa7ee22c1d681549ff7ab0466ceda5a911c2.tar.xz
linux-8420fa7ee22c1d681549ff7ab0466ceda5a911c2.zip
V4L/DVB (10662): remove redundant memset after kzalloc
Hi there! While having a look at the allocation of struct dvb_frontend in *_attach functions, I found some cases calling memset after kzalloc. This is redundant, and the attached patch removes these calls. I also changed one case calling kmalloc and memset to kzalloc. Regards Matthias Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24113.c')
-rw-r--r--drivers/media/dvb/frontends/cx24113.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/cx24113.c b/drivers/media/dvb/frontends/cx24113.c
index f6e7b0380a5a..e4fd533a427c 100644
--- a/drivers/media/dvb/frontends/cx24113.c
+++ b/drivers/media/dvb/frontends/cx24113.c
@@ -559,7 +559,7 @@ struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
kzalloc(sizeof(struct cx24113_state), GFP_KERNEL);
int rc;
if (state == NULL) {
- err("Unable to kmalloc\n");
+ err("Unable to kzalloc\n");
goto error;
}