Repository navigation
Commit 306b79e
committed
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>1 parent 7fc82af commit 306b79e
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6285 | 6285 | | |
6286 | 6286 | | |
6287 | 6287 | | |
6288 | | - | |
6289 | | - | |
6290 | | - | |
6291 | | - | |
6292 | | - | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
6293 | 6300 | | |
6294 | | - | |
6295 | | - | |
6296 | | - | |
| 6301 | + | |
6297 | 6302 | | |
| 6303 | + | |
6298 | 6304 | | |
6299 | 6305 | | |
6300 | 6306 | | |
| |||
0 commit comments