mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
mac80211: only alloc mem if a station doesn't exist yet
This speeds up the function in case a station already exists by avoiding calling an expensive kzalloc just to free it again after the next check. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
445cd452fe
commit
0c2e384267
1 changed files with 7 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue