]> git.karo-electronics.de Git - linux-beck.git/commitdiff
brcmfmac: remove error message upon allocation failure
authorArend van Spriel <arend@broadcom.com>
Wed, 17 Apr 2013 19:25:51 +0000 (21:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:21 +0000 (15:20 -0400)
In function brcmf_add_if() an error message is printed
upon alloc_netdev() failure. The allocation failure itself
spews enough info in the log so remove the error message.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c

index 269fde2a8168aa9b766f9d93d32e1b04ed8b69c6..a0afef26ac1385cfe258521ab9c2c6a52519144c 100644 (file)
@@ -760,10 +760,8 @@ struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bssidx, s32 ifidx,
                brcmf_dbg(INFO, "allocate netdev interface\n");
                /* Allocate netdev, including space for private structure */
                ndev = alloc_netdev(sizeof(*ifp), name, ether_setup);
-               if (!ndev) {
-                       brcmf_err("OOM - alloc_netdev\n");
+               if (!ndev)
                        return ERR_PTR(-ENOMEM);
-               }
 
                ifp = netdev_priv(ndev);
                ifp->ndev = ndev;