commit | 7a9b3ec1e19f691f6e69429d851a4084b86e6219 | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Wed Jan 31 23:07:06 2018 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Mon Feb 19 13:16:37 2018 +0100 |
tree | 87ab9bd5579839647cc758cfc4118ba32513a82f | |
parent | ff84e7bfe1763982e1ada390386dbe4739cee1e2 [diff] |
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: Johannes Berg <johannes.berg@intel.com>