]> git.baikalelectronics.ru Git - kernel.git/commit
can: xilinx: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 Sep 2018 10:32:29 +0000 (18:32 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Nov 2018 15:19:52 +0000 (16:19 +0100)
commit4de2ed054e9a4f7eea1e6092f19de06f036021b7
tree1067f7febe4f6d59ae8adeb834e69b6a2f48c059
parent3c3c07aca7fe4e7cf2a0dc9d861b178010b52792
can: xilinx: 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: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/xilinx_can.c