Re: [PATCH 35/36] cpupower: remove conditional return with no effect

From: Shuah

Date: Tue Aug 04 2026 - 15:20:22 EST


On 7/23/26 12:45, Sang-Heon Jeon wrote:
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.

Signed-off-by: Sang-Heon Jeon <ekffu200098@xxxxxxxxx>

Applied to
https://web.git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=cpupower

Will include it in my next pr to PM maintainer.

thanks,
-- Shuah