net: cavium: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Tue, 18 Sep 2018 06:19:05 +0000 (14:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:46:57 +0000 (18:46 +0100)
commitefe22c12087d2f87d1e9129d20976d322521b29f
tree35aef3a7c3d0cb7683c955acad7113dde277d6ed
parent279a4f77546a4c4a989e400b49bf9ba328322036
net: cavium: fix return type of ndo_start_xmit function

[ Upstream commit ac1172dea10b6ba51de9346d3130db688b5196c5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c