commit | 1d5e1266cf4d96660e9b01577fdf8046b076cb58 | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Wed Feb 12 11:29:32 2014 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Wed Feb 12 11:29:32 2014 +0100 |
tree | 6335cf6b1a78d72676f1f8609878804f75c326c9 | |
parent | 361c3e0485c737b9c8a2d456b8c3c7b08d8ca8ee [diff] |
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>