[PATCH] Video: fb, kzalloc changes
[deliverable/linux.git] / drivers / video / nvidia / nvidia.c
index 538e947610e19374dfa71c66d310f444262ac636..f6731dadff3a43ec2caef8aa1ed07c4a1310cf10 100644 (file)
@@ -1205,13 +1205,11 @@ static int __devinit nvidiafb_probe(struct pci_dev *pd,
        par = info->par;
        par->pci_dev = pd;
 
-       info->pixmap.addr = kmalloc(8 * 1024, GFP_KERNEL);
+       info->pixmap.addr = kzalloc(8 * 1024, GFP_KERNEL);
 
        if (info->pixmap.addr == NULL)
                goto err_out_kfree;
 
-       memset(info->pixmap.addr, 0, 8 * 1024);
-
        if (pci_enable_device(pd)) {
                printk(KERN_ERR PFX "cannot enable PCI device\n");
                goto err_out_enable;
This page took 0.023307 seconds and 5 git commands to generate.