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

Commit db723a9a authored by Naitik Bharadiya's avatar Naitik Bharadiya
Browse files

clk: msm: cpu-clock: Fix logical-not-parentheses warnings and errors



llvm showing warning when logical not is only applied
to the left hand side of the bitwise operator.
Use proper logical not condition to fix compilation 
error with llvm.

Change-Id: Ie7f3a549a72e46a5d230d3ae10f879b5f6f32b27
Signed-off-by: default avatarNaitik Bharadiya <bharad@codeaurora.org>
parent 847652c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2016, 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1081,7 +1081,7 @@ static int __init cpu_clock_a53_init_little(void)

	/* Wait for update to take effect */
	for (count = 500; count > 0; count--) {
		if (!(readl_relaxed(base)) & BIT(0))
		if (!(readl_relaxed(base) & BIT(0)))
			break;
		udelay(1);
	}
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1104,7 +1104,7 @@ static int __init cpu_clock_init(void)

	/* Wait for update to take effect */
	for (count = 500; count > 0; count--) {
		if (!(readl_relaxed(base)) & BIT(0))
		if (!(readl_relaxed(base) & BIT(0)))
			break;
		udelay(1);
	}