]> asedeno.scripts.mit.edu Git - linux.git/commit
can: sun4i: fix sun4ican_start_xmit()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 26 Apr 2018 21:13:37 +0000 (23:13 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 27 Jul 2018 08:40:16 +0000 (10:40 +0200)
commit79b110bb0b608a4f7d03d6d6a0d8eb03453d65cc
tree37f4cce0a12444afc6c27ce4d0ae66d54657ebbb
parent67c2eef22e2b5cdc45dad51bb36277362c04bccc
can: sun4i: fix sun4ican_start_xmit()'s return type

The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
which is a typedef for an enum type, but the implementation in this
driver returns an 'int'.

Fix this by returning 'netdev_tx_t' in this driver too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sun4i_can.c