]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpupower: Remove spurious return statement
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 18 Dec 2024 19:09:50 +0000 (13:09 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 20 Dec 2024 16:12:07 +0000 (09:12 -0700)
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>
tools/power/cpupower/utils/cpufreq-info.c

index c96b77365c637da774478edeab00b98e823c5abf..5f092f3c729e7e9c51378cd9f93d5848b064dbdc 100644 (file)
@@ -120,7 +120,6 @@ static void print_duration(unsigned long duration)
                } else
                        printf("%lu ns", duration);
        }
-       return;
 }
 
 static int get_boost_mode_x86(unsigned int cpu)