drm/amd/display: Remove redundant initialization of variable result
authorColin Ian King <colin.king@canonical.com>
Thu, 7 Oct 2021 12:06:37 +0000 (13:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Oct 2021 17:20:13 +0000 (13:20 -0400)
commit08808f75d9b7925627a2d56a6f609a38ced67409
tree94498e30b4e4f9ba8f918980439e3805591d4165
parent73bf66712d2b2201912a404271eaf8fd89e81d22
drm/amd/display: Remove redundant initialization of variable result

The variable result is being initialized with a value that is never
read, it is being updated immediately afterwards in both branches
of an if statement. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dpia.c