aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ovcamchip/ov6x20.c
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/video/ovcamchip/ov6x20.c
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/video/ovcamchip/ov6x20.c')
-rw-r--r--drivers/media/video/ovcamchip/ov6x20.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/ovcamchip/ov6x20.c b/drivers/media/video/ovcamchip/ov6x20.c
index b3f4d266cede..c04130dab127 100644
--- a/drivers/media/video/ovcamchip/ov6x20.c
+++ b/drivers/media/video/ovcamchip/ov6x20.c
@@ -178,10 +178,9 @@ static int ov6x20_init(struct i2c_client *c)
178 if (rc < 0) 178 if (rc < 0)
179 return rc; 179 return rc;
180 180
181 ov->spriv = s = kmalloc(sizeof *s, GFP_KERNEL); 181 ov->spriv = s = kzalloc(sizeof *s, GFP_KERNEL);
182 if (!s) 182 if (!s)
183 return -ENOMEM; 183 return -ENOMEM;
184 memset(s, 0, sizeof *s);
185 184
186 s->auto_brt = 1; 185 s->auto_brt = 1;
187 s->auto_exp = 1; 186 s->auto_exp = 1;