IB/nes: fix nes_netdev_start_xmit()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 24 Apr 2018 13:15:45 +0000 (15:15 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Apr 2018 18:07:30 +0000 (14:07 -0400)
commitc192a12ce82ca0a951bd5449a21d53c5f3f88697
tree8b221014d86947c6e8f8f6ec21573779cc7e2a2e
parent2918c1a900252b4a0c730715ec205437c7daf79d
IB/nes: fix nes_netdev_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>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/nes/nes_nic.c