net: remove unnecessary genlmsg_cancel() calls
the message be freed immediately, no need to trim it
back to the previous size.
Inspired by commit 7a9b3ec1e1
("nl80211: remove unnecessary genlmsg_cancel() calls")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
77ab8d5d29
commit
c1c9a3c966
@@ -2514,7 +2514,6 @@ static void hwsim_mcast_new_radio(int id, struct genl_info *info,
|
||||
return;
|
||||
|
||||
out_err:
|
||||
genlmsg_cancel(mcast_skb, data);
|
||||
nlmsg_free(mcast_skb);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user