]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: remove redundant duplicated return check
authorColin Ian King <colin.king@canonical.com>
Mon, 5 Aug 2019 10:29:40 +0000 (11:29 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2019 17:47:49 +0000 (12:47 -0500)
commit2ad130ec740ba4bb8135cd1c401cbf8c8f69c3d8
tree472a532748550f59a32efb1efa3929351e10e210
parent5949e960e7092c219dfec2046324a5540292176e
drm/amd/powerplay: remove redundant duplicated return check

The check on ret is duplicated in two places, it is redundant code.
Remove it.

Addresses-Coverity: ("Logically dead code")
Fixes: 6292fe148ef2 ("drm/amd/powerplay: honor hw limit on fetching metrics data for navi10")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c