]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/ovcamchip/ov6x20.c
V4L/DVB (9651): em28xx: Improve audio handling
[linux-2.6-omap-h63xx.git] / drivers / media / video / ovcamchip / ov6x20.c
index b3f4d266cedead6f1afd053ec0b4e2edd117b88e..c04130dab127b17a7a86c928a997be6745c86b26 100644 (file)
@@ -178,10 +178,9 @@ static int ov6x20_init(struct i2c_client *c)
        if (rc < 0)
                return rc;
 
-       ov->spriv = s = kmalloc(sizeof *s, GFP_KERNEL);
+       ov->spriv = s = kzalloc(sizeof *s, GFP_KERNEL);
        if (!s)
                return -ENOMEM;
-       memset(s, 0, sizeof *s);
 
        s->auto_brt = 1;
        s->auto_exp = 1;