]> git.baikalelectronics.ru Git - kernel.git/commit
net: cirrus: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Sep 2018 03:02:37 +0000 (11:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:15:14 +0000 (19:15 -0700)
commit6ef9a05fd1f787f2d787fa91fa787606f21bc5ab
tree6a1d527f533e5178173b1c973c8162f3ed15ac46
parentb63801620adcd3dcb5f229e25067d855f9a64cc4
net: cirrus: 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/cirrus/ep93xx_eth.c
drivers/net/ethernet/cirrus/mac89x0.c