Skip to content
Commit 7a9b3ec1 authored by Johannes Berg's avatar Johannes Berg
Browse files

nl80211: remove unnecessary genlmsg_cancel() calls



If we free the message immediately, there's no reason to
trim it back to the previous size.

Done with spatch:

@@
identifier msg, hdr;
@@
-if (hdr)
-  genlmsg_cancel(msg, hdr);
... when != msg;
 nlmsg_free(msg);

@@
identifier msg, hdr;
@@
-genlmsg_cancel(msg, hdr);
... when != msg;
 nlmsg_free(msg);

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent ff84e7bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment