Skip to content

Commit 2d0b233

Browse files
author
Chip-Kerchner
committed
Fix missing parens.
1 parent a8c90eb commit 2d0b233

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

driver/others/dynamic_power.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ static int __builtin_cpu_is(char *arg)
241241
ipinfo = cpuid();
242242
}
243243
if (ipinfo == CPU_POWER10) {
244-
if (!strcmp(arg, "power10") return 1;
244+
if (!strcmp(arg, "power10")) return 1;
245245
} else if (ipinfo == CPU_POWER9) {
246-
if (!strcmp(arg, "power9") return 1;
246+
if (!strcmp(arg, "power9")) return 1;
247247
} else if (ipinfo == CPU_POWER8) {
248-
if (!strcmp(arg, "power8") return 1;
248+
if (!strcmp(arg, "power8")) return 1;
249249
} else if (ipinfo == CPU_POWER6) {
250-
if (!strcmp(arg, "power6") return 1;
250+
if (!strcmp(arg, "power6")) return 1;
251251
} else {
252252
return 0;
253253
}

0 commit comments

Comments
 (0)