summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda7432.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2006-01-11 19:28:02 +0000
committerMauro Carvalho Chehab <devnull@localhost>2006-01-11 19:28:02 +0000
commit069637ed9609cb009c57d2bf1039e69812b2304b (patch)
tree043bf8adc38ec355490eff08f7bbdfe90a230456 /linux/drivers/media/video/tda7432.c
parent40aca7dd04e8f2d3e3a8cddd5d3d8c3d596c978f (diff)
downloadmediapointer-dvb-s2-069637ed9609cb009c57d2bf1039e69812b2304b.tar.gz
mediapointer-dvb-s2-069637ed9609cb009c57d2bf1039e69812b2304b.tar.bz2
From: Panagiotis Issaris <takis@issaris.org>
Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to k(z|c)alloc. kernel-sync 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 'linux/drivers/media/video/tda7432.c')
-rw-r--r--linux/drivers/media/video/tda7432.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tda7432.c b/linux/drivers/media/video/tda7432.c
index b458518a5..8be350474 100644
--- a/linux/drivers/media/video/tda7432.c
+++ b/linux/drivers/media/video/tda7432.c
@@ -323,10 +323,9 @@ static int tda7432_attach(struct i2c_adapter *adap, int addr,
struct tda7432 *t;
struct i2c_client *client;
- t = kmalloc(sizeof *t,GFP_KERNEL);
+ t = kzalloc(sizeof *t,GFP_KERNEL);
if (!t)
return -ENOMEM;
- memset(t,0,sizeof *t);
client = &t->c;
memcpy(client,&client_template,sizeof(struct i2c_client));