video: Convert vmalloc/memset to vzalloc
[firefly-linux-kernel-4.4.55.git] / drivers / video / metronomefb.c
index ed64edfd2c43b7a97e693ff30b6e26972caaf7f7..97d45e5115e254647454d7c5b7598053944c7273 100644 (file)
@@ -628,12 +628,10 @@ static int __devinit metronomefb_probe(struct platform_device *dev)
        /* we need to add a spare page because our csum caching scheme walks
         * to the end of the page */
        videomemorysize = PAGE_SIZE + (fw * fh);
-       videomemory = vmalloc(videomemorysize);
+       videomemory = vzalloc(videomemorysize);
        if (!videomemory)
                goto err_fb_rel;
 
-       memset(videomemory, 0, videomemorysize);
-
        info->screen_base = (char __force __iomem *)videomemory;
        info->fbops = &metronomefb_ops;