V4L/DVB (10662): remove redundant memset after kzalloc
authorMatthias Schwarzott <zzam@gentoo.org>
Mon, 23 Feb 2009 15:26:38 +0000 (12:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:52 +0000 (12:42 -0300)
commit8420fa7ee22c1d681549ff7ab0466ceda5a911c2
tree62e85db6e66870efa58df24dd69a9c2f8784e5d1
parent51ca3bddf34bb6cdbdddd89f59fe3a0131d40eba
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>
drivers/media/dvb/frontends/cx24113.c
drivers/media/dvb/frontends/cx24116.c
drivers/media/dvb/frontends/cx24123.c
drivers/media/dvb/frontends/lgdt3304.c
drivers/media/dvb/frontends/s921_module.c