]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove redundant variable status
authorColin Ian King <colin.king@canonical.com>
Fri, 8 Nov 2019 16:29:45 +0000 (16:29 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:44 +0000 (15:29 -0500)
commit28a8d996f45885e66b35a45159d5b4fd4b39877d
tree3bdf61c4bc1a5c15cdc60a333ad4c5131264f1c3
parentd46bf39fe2c57cf6378251c5d8ddd1719f7cc754
drm/amd/display: remove redundant variable status

Variable status is redundant, it is being initialized with a value
that is over-written later and this is being returned immediately
after the assignment.  Clean up the code by removing status and
just returning the value returned from the call to function
dc->hwss.dmdata_status_done.

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_stream.c