Commit 510ce586 authored by Miquel Raynal's avatar Miquel Raynal Committed by Stefan Schmidt

net: ieee802154: ca8210: Call _xmit_error() when a transmission fails

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Acked-by: default avatarAlexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220407100903.1695973-11-miquel.raynal@bootlin.comSigned-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent ab191c1c
...@@ -1729,8 +1729,7 @@ static int ca8210_async_xmit_complete( ...@@ -1729,8 +1729,7 @@ static int ca8210_async_xmit_complete(
status status
); );
if (status != IEEE802154_TRANSACTION_OVERFLOW) { if (status != IEEE802154_TRANSACTION_OVERFLOW) {
dev_kfree_skb_any(priv->tx_skb); ieee802154_xmit_error(priv->hw, priv->tx_skb, status);
ieee802154_wake_queue(priv->hw);
return 0; return 0;
} }
} }
......
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