]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Tue, 18 Sep 2018 06:09:43 +0000 (14:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2018 03:01:25 +0000 (20:01 -0700)
commit40aaf558069772fbfc5c70496147d6dfde4820a2
tree057bf4344e54135515576b08a434076395c21c34
parent3e6f6e171cff68f3bebb32f5e02d852e44e3ee94
net: hns3: 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, also the implementation in this
driver has returns 'netdev_tx_t' value, so just 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/hisilicon/hip04_eth.c
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c