]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit81de0cd60fd492575b24d97667f38b8b833fb058
tree1067f7febe4f6d59ae8adeb834e69b6a2f48c059
parent3b17d4175414baefaaf59948b5e0bc030cc3d943
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