• zhengbin's avatar
    drm/amd/powerplay: remove set but not used variable 'vbios_version', 'data' · cb770922
    zhengbin authored
    Fixes gcc '-Wunused-but-set-variable' warning:
    
    drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c: In function smu7_check_mc_firmware:
    drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:4215:11: warning: variable vbios_version set but not used [-Wunused-but-set-variable]
    drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c: In function smu7_get_performance_level:
    drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:5054:21: warning: variable data set but not used [-Wunused-but-set-variable]
    
    'vbios_version' is introduced by commit 599a7e9f ("drm/amd/powerplay:
    implement smu7 hwmgr to manager asics with smu ip version 7."),
    but never used, so remove it.
    
    'data' is introduced by commit f688b614 ("drm/amd/pp:
    Implement get_performance_level for legacy dgpu"), but never used,
    so remove it.
    Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
    Reported-by: default avatarHulk Robot <hulkci@huawei.com>
    Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    cb770922
smu7_hwmgr.c 168 KB