OSDN Git Service

net: hns3: remove unnecessary frag list checking in hns3_nic_net_xmit()
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 14 May 2020 12:41:26 +0000 (20:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 20:18:10 +0000 (13:18 -0700)
commit5c6cfd309faa7a1958c14b937ba9b95abb1427de
tree8f24186b20cc6fa2f4869ed237129187bc3709b4
parentbd13f7e12936b83a363ffada725bdf0fe229f337
net: hns3: remove unnecessary frag list checking in hns3_nic_net_xmit()

The skb_has_frag_list() in hns3_nic_net_xmit() is redundant, since
skb_walk_frags() includes this checking implicitly.

Reported-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c