summaryrefslogtreecommitdiff
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2013-03-29 13:38:39 (GMT)
committerJohannes Berg <johannes.berg@intel.com>2013-04-08 07:16:59 (GMT)
commitae76eef027f75fadd8a8eda55ee07707f077aacb (patch)
tree996060a0166128480ad5e55244438cd16448fb99 /net/mac80211/iface.c
parent0f71651f935d05557eac5862ff68dd2335b0ce0e (diff)
downloadlinux-fsl-qoriq-ae76eef027f75fadd8a8eda55ee07707f077aacb.tar.xz
mac80211: return new mpath from mesh_path_add()
Most times that mesh_path_add() is called, it is followed by a lookup to get the just-added mpath. We can instead just return the new mpath in the case that we allocated one (or the existing one if already there), so do that. Also, reorder the code in mesh_path_add a bit so that we don't need to allocate in the pre-existing case. Signed-off-by: Bob Copeland <bob@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
0 files changed, 0 insertions, 0 deletions