mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 11:28:32 +00:00
brcmfmac: correct success flag passed by brcmf_sdbrcm_txpkt()
The function brcmf_sdbrcm_txpkt() calls brcmf_txcomplete() with a parameter success. For this parameter it passes ret != 0, but that condition is true upon failure. Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Piotr Haber <phaber@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2a2ac7561a
commit
a886f7f4e4
1 changed files with 1 additions and 1 deletions
|
@ -1897,7 +1897,7 @@ static int brcmf_sdbrcm_txpkt(struct brcmf_sdio *bus, struct sk_buff *pkt,
|
||||||
done:
|
done:
|
||||||
/* restore pkt buffer pointer before calling tx complete routine */
|
/* restore pkt buffer pointer before calling tx complete routine */
|
||||||
skb_pull(pkt, SDPCM_HDRLEN + pad);
|
skb_pull(pkt, SDPCM_HDRLEN + pad);
|
||||||
brcmf_txcomplete(bus->sdiodev->dev, pkt, ret != 0);
|
brcmf_txcomplete(bus->sdiodev->dev, pkt, ret == 0);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue