Skip to content

Commit

Permalink
net: ieee802154: ca8210: Call _xmit_error() when a transmission fails
Browse files Browse the repository at this point in the history
ieee802154_xmit_error() is the right helper to call when a transmission
has failed. Let's use it instead of open-coding it.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220407100903.1695973-11-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
  • Loading branch information
Miquel Raynal authored and Stefan Schmidt committed Apr 25, 2022
1 parent ab191c1 commit 510ce58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ieee802154/ca8210.c
Original file line number Diff line number Diff line change
Expand Up @@ -1729,8 +1729,7 @@ static int ca8210_async_xmit_complete(
status
);
if (status != IEEE802154_TRANSACTION_OVERFLOW) {
dev_kfree_skb_any(priv->tx_skb);
ieee802154_wake_queue(priv->hw);
ieee802154_xmit_error(priv->hw, priv->tx_skb, status);
return 0;
}
}
Expand Down

0 comments on commit 510ce58

Please sign in to comment.