]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09c457247793b737c394338d330c1a26951ed317
tree8f24186b20cc6fa2f4869ed237129187bc3709b4
parent220148505c4234e7cf067237aa0e81227bcea350
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