Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 631d464d authored by Julia Lawall's avatar Julia Lawall Committed by Kalle Valo
Browse files

brcm80211: fix compare_const_fl.cocci warnings



Move constants to the right of binary operators.

Generated by: scripts/coccinelle/misc/compare_const_fl.cocci

Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 7cfd829c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -177,8 +177,8 @@ static bool brcms_c_country_valid(const char *ccode)
	 * only allow ascii alpha uppercase for the first 2
	 * chars.
	 */
	if (!((0x80 & ccode[0]) == 0 && ccode[0] >= 0x41 && ccode[0] <= 0x5A &&
	      (0x80 & ccode[1]) == 0 && ccode[1] >= 0x41 && ccode[1] <= 0x5A))
	if (!((ccode[0] & 0x80) == 0 && ccode[0] >= 0x41 && ccode[0] <= 0x5A &&
	      (ccode[1] & 0x80) == 0 && ccode[1] >= 0x41 && ccode[1] <= 0x5A))
		return false;

	/*