]> git.baikalelectronics.ru Git - kernel.git/commit
net: apple: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Sep 2018 03:46:37 +0000 (11:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:15:15 +0000 (19:15 -0700)
commit12631ab5ffbf80ef0db613e7bccb0b6e6ffa7306
tree53b0ea7fde6f99ee72ea409b16167bca1a67e219
parent3210f846d592e0230b6fa43c9d076790b2af6b01
net: apple: 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/apple/bmac.c
drivers/net/ethernet/apple/mace.c
drivers/net/ethernet/apple/macmace.c