]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: simplify TDLS RA lookup
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 06:28:22 +0000 (08:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 06:28:22 +0000 (08:28 +0200)
commit01b7f45d2c6ed5a48366525a0f1b340bec83c44d
treea9e1890f3a0d41ece3eb1ee9823951808380b2c2
parentdde59acd3965fb75c822ed91081b96d10cf5100f
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>
net/mac80211/tx.c