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

net: dwc-xlgmac: fix xlgmac_xmit()'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
673d8eb6 4e516a35

+1 -1
+1 -1
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
··· 697 697 schedule_work(&pdata->restart_work); 698 698 } 699 699 700 - static int xlgmac_xmit(struct sk_buff *skb, struct net_device *netdev) 700 + static netdev_tx_t xlgmac_xmit(struct sk_buff *skb, struct net_device *netdev) 701 701 { 702 702 struct xlgmac_pdata *pdata = netdev_priv(netdev); 703 703 struct xlgmac_pkt_info *tx_pkt_info;