]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/atm/br2684.c
[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
[net-next-2.6.git] / net / atm / br2684.c
index a487233dc466f35e4b5964394b5f4d61da7fd9ce..d00cca97eb33bea4895be72c88abea6ca4293a7e 100644 (file)
@@ -508,10 +508,9 @@ Note: we do not have explicit unassign, but look at _push()
 
        if (copy_from_user(&be, arg, sizeof be))
                return -EFAULT;
-       brvcc = kmalloc(sizeof(struct br2684_vcc), GFP_KERNEL);
+       brvcc = kzalloc(sizeof(struct br2684_vcc), GFP_KERNEL);
        if (!brvcc)
                return -ENOMEM;
-       memset(brvcc, 0, sizeof(struct br2684_vcc));
        write_lock_irq(&devs_lock);
        net_dev = br2684_find_dev(&be.ifspec);
        if (net_dev == NULL) {