]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd80cf352eacd75841a533505e8bf5a2cd57cdfd9
treebed9d7c1c1d52eecdab97cf43a95f47de4a7d216
parent5dba0ffcc5212ff8fbf43c7c2e5f23dd61867f6a
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