mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
77ab8d5d29
commit
c1c9a3c966
6 changed files with 0 additions and 26 deletions
|
|
@ -201,7 +201,6 @@ static int ncsi_pkg_info_nl(struct sk_buff *msg, struct genl_info *info)
|
|||
return genlmsg_reply(skb, info);
|
||||
|
||||
err:
|
||||
genlmsg_cancel(skb, hdr);
|
||||
kfree_skb(skb);
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue