Skip to content

Commit 6bf9e4d

Browse files
lucvoosimonwunderlich
authored andcommitted
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 <[email protected]> [[email protected]: fixed alignment] Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]>
1 parent dc06338 commit 6bf9e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/batman-adv/soft-interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ static void batadv_interface_set_rx_mode(struct net_device *dev)
188188
{
189189
}
190190

191-
static int batadv_interface_tx(struct sk_buff *skb,
192-
struct net_device *soft_iface)
191+
static netdev_tx_t batadv_interface_tx(struct sk_buff *skb,
192+
struct net_device *soft_iface)
193193
{
194194
struct ethhdr *ethhdr;
195195
struct batadv_priv *bat_priv = netdev_priv(soft_iface);

0 commit comments

Comments
 (0)