]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: wiznet: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Sep 2018 03:35:11 +0000 (11:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:15:15 +0000 (19:15 -0700)
commitf0f25516e3b9efff2a34059347d13361d26e314a
treecb0dfbd8aba9ab84e486674691dd9bee9fd0b14f
parent28d304efb88f18aadfe9219f0e4b2b0ef9558a3b
net: wiznet: fix return type of ndo_start_xmit function

The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
which is a typedef for an enum type, so make sure the implementation in
this driver has returns 'netdev_tx_t' value, and change the function
return type to netdev_tx_t.

Found by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wiznet/w5100.c
drivers/net/ethernet/wiznet/w5300.c