diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-07-24 03:45:37 +0900 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2026-08-04 13:12:06 -0600 |
| commit | adfe0057326ffbc2cd5ff69a57ec0e50b5e74095 (patch) | |
| tree | b369f0c48e2e4c108163933324d96c3e69ede8ce | |
| parent | eeed6071ceda7104e3397dca24cfd3dc73948150 (diff) | |
cpupower: remove conditional return with no effect
Both branches of the check return the same value, so the check has
no effect. Remove it and return the value directly.
This is the result of running the Coccinelle script from
scripts/coccinelle/misc/cond_return_no_effect.cocci.
Link: https://lore.kernel.org/linux-pm/20260723184538.3888637-36-ekffu200098@gmail.com/raw
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
| -rw-r--r-- | tools/power/cpupower/utils/powercap-info.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/powercap-info.c b/tools/power/cpupower/utils/powercap-info.c index e53033488218..88a5edb76315 100644 --- a/tools/power/cpupower/utils/powercap-info.c +++ b/tools/power/cpupower/utils/powercap-info.c @@ -47,8 +47,6 @@ static int powercap_print_one_zone(struct powercap_zone *zone) printf("\n"); - if (ret != 0) - return ret; return ret; } |
