]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/ovcamchip/ov6x30.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
[linux-2.6-omap-h63xx.git] / drivers / media / video / ovcamchip / ov6x30.c
index 6eab458ab792a88e58313731f11ab27160fe1535..73b94f51a85a8c03f4e126fd67db612a82fce754 100644 (file)
@@ -141,10 +141,9 @@ static int ov6x30_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;