]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix batadv_interface_tx()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 24 Apr 2018 13:18:46 +0000 (15:18 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Wed, 25 Apr 2018 17:33:36 +0000 (19:33 +0200)
commitc91c57ed9eb10b2c2106b839d19bfd0a590289b1
treee7b09218e6124cce3b7074f79f9f64210c634024
parent33661e43165db7070bc51953dc54da7adcfd61a5
batman-adv: fix batadv_interface_tx()'s return type

The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
which is a typedef for an enum type, but the implementation in this
driver returns an 'int'.

Fix this by returning 'netdev_tx_t' in this driver too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
[sven@narfation.org: fixed alignment]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/soft-interface.c