aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/pluto2
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis@issaris.org>2006-01-11 16:40:56 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-11 16:40:56 -0500
commit7408187d223f63d46a13b6a35b8f96b032c2f623 (patch)
tree425a459f760295de488f57e3f97b034aaa76a78d /drivers/media/dvb/pluto2
parent0b3af1b6df82cfdb54ae294ed860263011fa0408 (diff)
V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
Conversions from kmalloc+memset to k(z|c)alloc. Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/pluto2')
-rw-r--r--drivers/media/dvb/pluto2/pluto2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/pluto2/pluto2.c b/drivers/media/dvb/pluto2/pluto2.c
index bbebd1c4caca..1c5316e209ef 100644
--- a/drivers/media/dvb/pluto2/pluto2.c
+++ b/drivers/media/dvb/pluto2/pluto2.c
@@ -584,11 +584,10 @@ static int __devinit pluto2_probe(struct pci_dev *pdev,
584 struct dmx_demux *dmx; 584 struct dmx_demux *dmx;
585 int ret = -ENOMEM; 585 int ret = -ENOMEM;
586 586
587 pluto = kmalloc(sizeof(struct pluto), GFP_KERNEL); 587 pluto = kzalloc(sizeof(struct pluto), GFP_KERNEL);
588 if (!pluto) 588 if (!pluto)
589 goto out; 589 goto out;
590 590
591 memset(pluto, 0, sizeof(struct pluto));
592 pluto->pdev = pdev; 591 pluto->pdev = pdev;
593 592
594 ret = pci_enable_device(pdev); 593 ret = pci_enable_device(pdev);