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

Commit 020cf6ba authored by Ingo Molnar's avatar Ingo Molnar Committed by John W. Linville
Browse files

net/wireless/reg.c: fix bad WARN_ON in if statement



fix:

  net/wireless/reg.c:348:29: error: macro "if" passed 2 arguments, but takes just 1

triggered by the branch-tracer.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 02969b38
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -343,9 +343,9 @@ static int ignore_request(struct wiphy *wiphy, enum reg_set_by set_by,
				return 0;
				return 0;
			return -EALREADY;
			return -EALREADY;
		}
		}
		if (WARN_ON(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2)),
		if (WARN(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2),
				"Invalid Country IE regulatory hint passed "
				"Invalid Country IE regulatory hint passed "
				"to the wireless core\n")
				"to the wireless core\n"))
			return -EINVAL;
			return -EINVAL;
		/* We ignore Country IE hints for now, as we haven't yet
		/* We ignore Country IE hints for now, as we haven't yet
		 * added the dot11MultiDomainCapabilityEnabled flag
		 * added the dot11MultiDomainCapabilityEnabled flag