drm/amd/pm: remove useless if
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 21 Jan 2022 11:48:00 +0000 (19:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 23:00:33 +0000 (18:00 -0500)
commit1418b9c38270f4c7843627cb0e9047b19eb3365a
treec3ed892d46aae07124c56dbd2613807de4f56001
parentdfced44f122c500004a48ecc8db516bb6a295a1b
drm/amd/pm: remove useless if

Clean the following coccicheck warning:

./drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c:7035:2-4: WARNING: possible
condition with no effect (if == else).

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c