From: Miquel Raynal Date: Thu, 7 Apr 2022 10:09:03 +0000 (+0200) Subject: net: ieee802154: ca8210: Call _xmit_error() when a transmission fails X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=510ce586320dafc4eebfcb4472a0f972e6c35ada;p=linux.git 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: Miquel Raynal Acked-by: Alexander Aring Link: https://lore.kernel.org/r/20220407100903.1695973-11-miquel.raynal@bootlin.com Signed-off-by: Stefan Schmidt --- diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 116aece191cdb..3c00310d26e8a 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -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; } }