From: Thadeu Lima de Souza Cascardo <cascardo@xxxxxxxxxxxxx> Removed unused nerr variable and use report_summary when exiting. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@xxxxxxxxxxxxx> Signed-off-by: Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx> --- x86/hyperv_clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x86/hyperv_clock.c b/x86/hyperv_clock.c index b4cfc9f..1e6f368 100644 --- a/x86/hyperv_clock.c +++ b/x86/hyperv_clock.c @@ -144,7 +144,6 @@ static void perf_test(int ncpus) int main(int ac, char **av) { - int nerr = 0; int ncpus; struct hv_reference_tsc_page shadow; uint64_t tsc1, t1, tsc2, t2; @@ -191,5 +190,5 @@ int main(int ac, char **av) report(rdmsr(HV_X64_MSR_REFERENCE_TSC) == 0, "MSR value after disabling"); - return nerr > 0 ? 1 : 0; + return report_summary(); } -- 2.25.1