ieee802154: cc2520: add rc code in cc2520_tx()
authorLi Qiong <liqiong@nfschina.com>
Mon, 29 Aug 2022 07:12:59 +0000 (15:12 +0800)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 29 Aug 2022 09:10:22 +0000 (11:10 +0200)
commitffd7bdddaab193c38416fd5dd416d065517d266e
treebed9d7c1c1d52eecdab97cf43a95f47de4a7d216
parentf0da47118c7e93cdbbc6fb403dd729a5f2c90ee3
ieee802154: cc2520: add rc code in cc2520_tx()

The rc code is 0 at the error path "status & CC2520_STATUS_TX_UNDERFLOW".
Assign rc code with '-EINVAL' at this error path to fix it.

Signed-off-by: Li Qiong <liqiong@nfschina.com>
Link: https://lore.kernel.org/r/20220829071259.18330-1-liqiong@nfschina.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/cc2520.c