]> git.baikalelectronics.ru Git - kernel.git/commit
net: sgi: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Fri, 21 Sep 2018 03:05:50 +0000 (11:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:15:14 +0000 (19:15 -0700)
commitb18cb985ed2a18c153d0b37d00e6910ecd285905
treeaba9005f3ba66981b379277bb0f11acb3410f452
parent0ad73c6b040c9efb6f97e13df45fa31e45f5b6f0
net: sgi: 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sgi/ioc3-eth.c
drivers/net/ethernet/sgi/meth.c