Skip to content

Commit dec2f97

Browse files
superm1shuahkh
authored andcommitted
cpupower: Remove spurious return statement
print_duration() has a return; statement at the end of the function that is not necessary as it's a void function. Link: https://lore.kernel.org/r/20241218191144.3440854-2-superm1@kernel.org Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 9d6c0e5 commit dec2f97

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/power/cpupower/utils/cpufreq-info.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ static void print_duration(unsigned long duration)
120120
} else
121121
printf("%lu ns", duration);
122122
}
123-
return;
124123
}
125124

126125
static int get_boost_mode_x86(unsigned int cpu)

0 commit comments

Comments
 (0)