]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/omap/omap_vout.c
V4L/DVB: drivers/media: Use kzalloc
[~andy/linux] / drivers / media / video / omap / omap_vout.c
index 4c0ab499228bd5d6a559932b5ef63e6e9646c5a1..e7db0554949a943fff6d3f6e1221064916b7acb1 100644 (file)
@@ -2371,12 +2371,11 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)
 
        for (k = 0; k < pdev->num_resources; k++) {
 
-               vout = kmalloc(sizeof(struct omap_vout_device), GFP_KERNEL);
+               vout = kzalloc(sizeof(struct omap_vout_device), GFP_KERNEL);
                if (!vout) {
                        dev_err(&pdev->dev, ": could not allocate memory\n");
                        return -ENOMEM;
                }
-               memset(vout, 0, sizeof(struct omap_vout_device));
 
                vout->vid = k;
                vid_dev->vouts[k] = vout;