]> git.baikalelectronics.ru Git - kernel.git/commit
net: freescale: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Sep 2018 02:50:32 +0000 (10:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:12:13 +0000 (19:12 -0700)
commitccf3152dc989c66de115c1ef27e65571091ed329
tree86a603e483516555f93f8fc40fa20cb2e4ca9356
parenta1b79ebf28f3bae9bce7424bd848e6562913f409
net: freescale: 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/freescale/dpaa/dpaa_eth.c
drivers/net/ethernet/freescale/fec_mpc52xx.c
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/ucc_geth.c