mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
cpupower: Remove unneeded semicolon
Fixes coccicheck warnings: tools/power/cpupower/utils/cpupower-info.c:65:2-3: Unneeded semicolon tools/power/cpupower/utils/cpupower-set.c:75:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c:120:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c:175:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c:56:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c:75:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c:82:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/nhm_idle.c:94:2-3: Unneeded semicolon tools/power/cpupower/utils/idle_monitor/snb_idle.c:80:2-3: Unneeded semicolon Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
0e698dfa28
commit
7b0bf99b9e
7 changed files with 9 additions and 9 deletions
|
@ -62,7 +62,7 @@ int cmd_info(int argc, char **argv)
|
||||||
default:
|
default:
|
||||||
print_wrong_arg_exit();
|
print_wrong_arg_exit();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
if (!params.params)
|
if (!params.params)
|
||||||
params.params = 0x7;
|
params.params = 0x7;
|
||||||
|
|
|
@ -72,7 +72,7 @@ int cmd_set(int argc, char **argv)
|
||||||
default:
|
default:
|
||||||
print_wrong_arg_exit();
|
print_wrong_arg_exit();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
if (!params.params)
|
if (!params.params)
|
||||||
print_wrong_arg_exit();
|
print_wrong_arg_exit();
|
||||||
|
|
|
@ -117,7 +117,7 @@ static int amd_fam14h_get_pci_info(struct cstate *state,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
};
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ static int cpuidle_start(void)
|
||||||
dprint("CPU %d - State: %d - Val: %llu\n",
|
dprint("CPU %d - State: %d - Val: %llu\n",
|
||||||
cpu, state, previous_count[cpu][state]);
|
cpu, state, previous_count[cpu][state]);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ static int cpuidle_stop(void)
|
||||||
dprint("CPU %d - State: %d - Val: %llu\n",
|
dprint("CPU %d - State: %d - Val: %llu\n",
|
||||||
cpu, state, previous_count[cpu][state]);
|
cpu, state, previous_count[cpu][state]);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ static struct cpuidle_monitor *cpuidle_register(void)
|
||||||
cpuidle_cstates[num].id = num;
|
cpuidle_cstates[num].id = num;
|
||||||
cpuidle_cstates[num].get_count_percent =
|
cpuidle_cstates[num].get_count_percent =
|
||||||
cpuidle_get_count_percent;
|
cpuidle_get_count_percent;
|
||||||
};
|
}
|
||||||
|
|
||||||
/* Free this at program termination */
|
/* Free this at program termination */
|
||||||
previous_count = malloc(sizeof(long long *) * cpu_count);
|
previous_count = malloc(sizeof(long long *) * cpu_count);
|
||||||
|
|
|
@ -79,7 +79,7 @@ static int hsw_ext_get_count(enum intel_hsw_ext_id id, unsigned long long *val,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
};
|
}
|
||||||
if (read_msr(cpu, msr, val))
|
if (read_msr(cpu, msr, val))
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -91,7 +91,7 @@ static int nhm_get_count(enum intel_nhm_id id, unsigned long long *val,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
};
|
}
|
||||||
if (read_msr(cpu, msr, val))
|
if (read_msr(cpu, msr, val))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ static int snb_get_count(enum intel_snb_id id, unsigned long long *val,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
};
|
}
|
||||||
if (read_msr(cpu, msr, val))
|
if (read_msr(cpu, msr, val))
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue