drm/radeon: remove dead code in ni_mc_load_microcode()
authorNikita Zhandarovich <n.zhandarovich@fintech.ru>
Wed, 17 Jan 2024 14:44:36 +0000 (06:44 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jan 2024 21:55:51 +0000 (16:55 -0500)
commitbf38a4e4ab6833174ba81bd1c13f7620cd920583
tree25b467d57deeb96cf897578879cac0d7b123da08
parent0cd2bc06de72216e8677bd08ff0cfa01564b9b19
drm/radeon: remove dead code in ni_mc_load_microcode()

Inside the if block with (running == 0), the checks for 'running'
possibly being non-zero are redundant. Remove them altogether.

This change is similar to the one authored by Heinrich Schuchardt
<xypron.glpk@gmx.de> in commit
ddbbd3be9679 ("drm/radeon: remove dead code, si_mc_load_microcode (v2)")

Found by Linux Verification Center (linuxtesting.org) with static
analysis tool Svace.

Fixes: 0af62b016804 ("drm/radeon/kms: add ucode loader for NI")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ni.c