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

Commit 28fffded authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala Committed by Todd Kjos
Browse files

ANDROID: sched/fair: fix a warning



Below warning got introduced by 'commit 2cc3df5e
("ANDROID: sched: Update max cpu capacity in case of
max frequency constraints")':

warning: '&&' within '||' [-Wlogical-op-parentheses]

Add parentheses required to fix the warning.

Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent d41481ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9165,7 +9165,7 @@ static void update_cpu_capacity(struct sched_domain *sd, int cpu)
	max_capacity = mcc->val;
	max_cap_cpu = mcc->cpu;

	if (max_capacity > capacity && max_cap_cpu == cpu ||
	if ((max_capacity > capacity && max_cap_cpu == cpu) ||
	    max_capacity < capacity) {
		mcc->val = capacity;
		mcc->cpu = cpu;