net: remove unnecessary genlmsg_cancel() calls
authorYueHaibing <yuehaibing@huawei.com>
Sat, 26 May 2018 11:15:48 +0000 (19:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 13:53:38 +0000 (09:53 -0400)
commitc1c9a3c9663b2e15176758626278792862f1ed32
treea227c72136a62865d12af106a354c3bb522adb16
parent77ab8d5d2950cd0e18ba943336c1172b46e9f53e
net: remove unnecessary genlmsg_cancel() calls

the message be freed immediately, no need to trim it
back to the previous size.

Inspired by commit 7a9b3ec1e19f ("nl80211: remove unnecessary genlmsg_cancel() calls")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
drivers/net/wireless/mac80211_hwsim.c
net/core/devlink.c
net/ipv6/seg6.c
net/ncsi/ncsi-netlink.c
net/nfc/netlink.c