net: allwinner: Fix use correct return type for ndo_start_xmit()
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 5 May 2020 02:49:20 +0000 (10:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2020 18:14:40 +0000 (11:14 -0700)
commit09f6c44aaae0f1bdb8b983d7762676d5018c53bc
tree6faaacaad62630e8ad03da18822c82da19c8d1b1
parent354d86141796a45e9c57c13d66bf2294d4c0d8e7
net: allwinner: Fix use correct return type for ndo_start_xmit()

The method ndo_start_xmit() returns a value of type netdev_tx_t. Fix
the ndo function to use the correct type. And emac_start_xmit() can
leak one skb if 'channel' == 3.

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c