]> git.baikalelectronics.ru Git - kernel.git/commit
net: micrel: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Sep 2018 02:42:15 +0000 (10:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:11:39 +0000 (19:11 -0700)
commitd0df0d8f6dfd1f94e0c66ec6bdc5eeaf39b3f047
tree06fddf9646cf41403870c20680a74495bbaa2961
parente0db9e21471bc9f14877be21966e810f9d21d6df
net: micrel: 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/micrel/ks8695net.c
drivers/net/ethernet/micrel/ks8851_mll.c