]> git.baikalelectronics.ru Git - kernel.git/commit
sgi-xp: fix xpnet_dev_hard_start_xmit()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 24 Apr 2018 13:15:56 +0000 (15:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 08:20:30 +0000 (10:20 +0200)
commit0f42d6f46fa8dc22036a2428b290bf128f1ed651
treeb50b4e52b63aba96f838ad17e68523baeea01f1a
parente28f650d2a117cfeee426c9fd2ff4191164d7920
sgi-xp: fix xpnet_dev_hard_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>
Acked-by: Robin Holt <robinmholt@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sgi-xp/xpnet.c