]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: clarify code in nl80211_del_station()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2020 10:38:35 +0000 (11:38 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2020 13:42:20 +0000 (14:42 +0100)
commit6f8037e107e5b7cb792b5e54be92a8fa2ae0803e
tree6ab7a386d038fa7e13030d9cf570fe25aa237e77
parent645a49526b1f3ecc38df873723bb14a708ac06aa
nl80211: clarify code in nl80211_del_station()

The long if chain of interface types is hard to read,
especially now with the additional condition after it.
Use a switch statement to clarify this code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200320113834.2c51b9e8e341.I3fa5dc3f7d3cb1dbbd77191d764586f7da993f3f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c