Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: nfp: fix nfp_net_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>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Luc Van Oostenryck and committed by
David S. Miller
737ce1e9 f649c355

+1 -1
+1 -1
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
··· 974 974 * 975 975 * Return: NETDEV_TX_OK on success. 976 976 */ 977 - static int nfp_net_tx(struct sk_buff *skb, struct net_device *netdev) 977 + static netdev_tx_t nfp_net_tx(struct sk_buff *skb, struct net_device *netdev) 978 978 { 979 979 struct nfp_net *nn = netdev_priv(netdev); 980 980 const skb_frag_t *frag;