Commit a652bf03 authored by Arend van Spriel's avatar Arend van Spriel Committed by John W. Linville

brcmfmac: remove error message upon allocation failure

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: default avatarHante Meuleman <meuleman@broadcom.com>
Reviewed-by: default avatarPiotr Haber <phaber@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 991c2093
...@@ -760,10 +760,8 @@ struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bssidx, s32 ifidx, ...@@ -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"); brcmf_dbg(INFO, "allocate netdev interface\n");
/* Allocate netdev, including space for private structure */ /* Allocate netdev, including space for private structure */
ndev = alloc_netdev(sizeof(*ifp), name, ether_setup); ndev = alloc_netdev(sizeof(*ifp), name, ether_setup);
if (!ndev) { if (!ndev)
brcmf_err("OOM - alloc_netdev\n");
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
ifp = netdev_priv(ndev); ifp = netdev_priv(ndev);
ifp->ndev = ndev; ifp->ndev = ndev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment