fixed more coding style errors

This commit is contained in:
Henrik Holst 2023-05-03 21:41:59 +02:00 committed by afayaz-feral
parent 81dc3f95e5
commit 173a8594b4

View File

@ -91,7 +91,8 @@ static int set_state(char *cpulist, int state)
/* on some systems one cannot park core #0 */ /* on some systems one cannot park core #0 */
if (cpu != 0) { if (cpu != 0) {
if (state == '0') { if (state == '0') {
LOG_ERROR("unable to park core #%ld, will not apply cpu core parking!\n", cpu); LOG_ERROR("unable to park core #%ld, will not apply cpu core parking!\n",
cpu);
return -1; return -1;
} }
@ -104,7 +105,7 @@ static int set_state(char *cpulist, int state)
} else if (last + 1 == cpu) { } else if (last + 1 == cpu) {
last = cpu; last = cpu;
} else { } else {
log_state (state, first, last); log_state(state, first, last);
first = cpu; first = cpu;
last = cpu; last = cpu;
} }