wireless: Remove unnecessary alloc/OOM messages, alloc cleanups
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rndis_wlan.c
index abe1d039be814150d1815949e90f78b38573fa2d..9bb3f22b3669ef2e135358dc3221a8596ec07c37 100644 (file)
@@ -1621,11 +1621,8 @@ static void set_multicast_list(struct usbnet *usbdev)
        } else if (mc_count) {
                int i = 0;
 
-               mc_addrs = kmalloc(mc_count * ETH_ALEN, GFP_ATOMIC);
+               mc_addrs = kmalloc_array(mc_count, ETH_ALEN, GFP_ATOMIC);
                if (!mc_addrs) {
-                       netdev_warn(usbdev->net,
-                                   "couldn't alloc %d bytes of memory\n",
-                                   mc_count * ETH_ALEN);
                        netif_addr_unlock_bh(usbdev->net);
                        return;
                }