From: Johannes Berg Date: Wed, 12 Feb 2014 10:29:32 +0000 (+0100) Subject: mac80211: simplify roc check in idle calculation X-Git-Tag: v3.15-rc1~113^2~159^2^2~131^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d5e1266cf4d96660e9b01577fdf8046b076cb58;p=pandora-kernel.git 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 --- Reading git-diff-tree failed