diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-23 15:26:38 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-23 15:26:38 +0000 |
commit | f1b096388308b69fdc4fe54e5952a7f7beb845bb (patch) | |
tree | b38d26e402f75e70100185d80ff7b41f2b594dc5 /linux/drivers/media/dvb/frontends/cx24113.c | |
parent | e24be1d8a703d1ebcc4b2027be8071d82446b2b3 (diff) | |
download | mediapointer-dvb-s2-f1b096388308b69fdc4fe54e5952a7f7beb845bb.tar.gz mediapointer-dvb-s2-f1b096388308b69fdc4fe54e5952a7f7beb845bb.tar.bz2 |
remove redundant memset after kzalloc
From: Matthias Schwarzott <zzam@gentoo.org>
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 'linux/drivers/media/dvb/frontends/cx24113.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx24113.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24113.c b/linux/drivers/media/dvb/frontends/cx24113.c index f6e7b0380..e4fd533a4 100644 --- a/linux/drivers/media/dvb/frontends/cx24113.c +++ b/linux/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; } |