Skip to content
Snippets Groups Projects
Commit cda1893e authored by Yang Yingliang's avatar Yang Yingliang Committed by David S. Miller
Browse files

net: mhi: remove pointless conditional before kfree_skb()


It already has null pointer check in kfree_skb(),
remove pointless pointer check before kfree_skb().

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c137d47
No related branches found
No related tags found
No related merge requests found
......@@ -361,8 +361,7 @@ static void mhi_net_remove(struct mhi_device *mhi_dev)
mhi_unprepare_from_transfer(mhi_netdev->mdev);
if (mhi_netdev->skbagg_head)
kfree_skb(mhi_netdev->skbagg_head);
kfree_skb(mhi_netdev->skbagg_head);
free_netdev(mhi_netdev->ndev);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment