]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: simplify roc check in idle calculation
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Feb 2014 10:29:32 +0000 (11:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Feb 2014 10:29:32 +0000 (11:29 +0100)
commit8f17a81927d59d4f42896d109be7230473461b38
tree6335cf6b1a78d72676f1f8609878804f75c326c9
parent427e7effee727634f70496e33a67e85d6ae42ac2
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>
net/mac80211/iface.c