mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
mac80211: simplify TDLS RA lookup
smatch pointed out that the second check of "tdls_auth" was pointless since if it was true, we returned from the function already. We can further simplify the code by moving the first check (if it's a TDLS peer at all) into the outer if, to only handle that inside. This simplifies the control flow here. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
8d51dbb8c7
commit
11d62caf93
1 changed files with 4 additions and 11 deletions
Loading…
Add table
Add a link
Reference in a new issue