net: ieee802154: atusb: Call _xmit_hw_error() upon transmission error
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 Apr 2022 10:09:01 +0000 (12:09 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 25 Apr 2022 18:52:22 +0000 (20:52 +0200)
commit35f34ee102a5b2376f4b4700ac017b8f2770e754
treef9bfd5f4e8a4b16ea70e7dc720e440565273a78b
parent6ec9630b1abe7622da75fd6559e3e9468655b96b
net: ieee802154: atusb: Call _xmit_hw_error() upon transmission error

ieee802154_xmit_hw_error() is the right helper to call when a transmission
has failed for a non-determined (and probably not IEEE802.15.4 specific)
reason. Let's use this helper 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-9-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/atusb.c