diff options
author | Hante Meuleman <meuleman@broadcom.com> | 2015-10-29 20:33:13 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-11-26 13:53:15 +0200 |
commit | 31fa86cb342bd0552c0c18dcda261b42afaa82ce (patch) | |
tree | 84693466dda968ec1ee1bf0afc0e87d6901da41e /drivers/net/wireless/broadcom/brcm80211/brcmfmac | |
parent | c9c0043894cf2666ae832fbad7afa68fa53178ac (diff) | |
download | op-kernel-dev-31fa86cb342bd0552c0c18dcda261b42afaa82ce.zip op-kernel-dev-31fa86cb342bd0552c0c18dcda261b42afaa82ce.tar.gz |
brcmfmac: Remove unnecessary check from start_xmit.
The brcmf_netdev_start_xmit checks if the ndev is still valid by
checking if it still exists in database. This check is not needed
and therefor removed.
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/brcm80211/brcmfmac')
-rw-r--r-- | drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c index 76b66bc..b743a83 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c @@ -217,14 +217,6 @@ static netdev_tx_t brcmf_netdev_start_xmit(struct sk_buff *skb, goto done; } - if (!drvr->iflist[ifp->bssidx]) { - brcmf_err("bad ifidx %d\n", ifp->bssidx); - netif_stop_queue(ndev); - dev_kfree_skb(skb); - ret = -ENODEV; - goto done; - } - /* Make sure there's enough room for any header */ if (skb_headroom(skb) < drvr->hdrlen) { struct sk_buff *skb2; |