OSDN Git Service

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)
commit8b94d0517902d179879fdb8a96edc5c0ab2e7c62
tree472a532748550f59a32efb1efa3929351e10e210
parent54a9bcb0a4ff6ee401955a1e2e657b97b9391eb7
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: b94afb61cdae ("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