From: Johannes Berg Date: Mon, 22 Dec 2014 11:51:25 +0000 (+0100) Subject: mac80211_hwsim: fix check for custom world regdom array size X-Git-Tag: fixes-v4.0-rc1~150^2~206^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5875755c577b00b06aba77ba471175c3e3a33c25;p=pandora-kernel.git mac80211_hwsim: fix check for custom world regdom array size David Binderman reports that the conditions in the first loop are the wrong way around - checking the array contents before the size. Instead of leaving the empty loop there and reordering the two checks unify it into a single loop that skips over non-matches and exits after the first match. Reported-by: David Binderman Signed-off-by: Johannes Berg --- Reading git-diff-tree failed