mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
mac80211: simplify roc check in idle calculation
There's no need to start iterating the list only to break on the first item, just use !list_empty() and also simplify the whole conditional into a single expression. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
361c3e0485
commit
1d5e1266cf
1 changed files with 3 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue