]> git.ipfire.org Git - thirdparty/linux.git/commit
PM / devfreq: mtk-cci: avoid redundant conditions
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Wed, 3 Sep 2025 12:14:52 +0000 (20:14 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Sep 2025 08:19:25 +0000 (17:19 +0900)
commit6d0982ae7880f2c4d5fbd1b5f7574ea93d1311ac
treeaac1a07c8722d1cd10d75a5e2324935a68d300fc
parentfc33bf0e097c6834646b98a7b3da0ae5b617f0f9
PM / devfreq: mtk-cci: avoid redundant conditions

While 'if (i <= 0) ... else if (i > 0) ...' is technically equivalent to
'if (i <= 0) ... else ...', the latter is vastly easier to read because
it avoids writing out a condition that is unnecessary. Let's drop such
unnecessary conditions.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://patchwork.kernel.org/project/linux-pm/patch/20250903121452.387023-1-liaoyuanhong@vivo.com/
drivers/devfreq/mtk-cci-devfreq.c