drm/amd/pm/powerplay/hwmgr/ppevvmath: Place variable declaration under same clause...
authorLee Jones <lee.jones@linaro.org>
Thu, 26 Nov 2020 13:42:11 +0000 (13:42 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 21:04:44 +0000 (16:04 -0500)
commit4c3508fe2382dd7933eca0fa9ef1920e7c6328ef
tree0e790f7524c29df7467e13aa98f182c29238fddf
parent874f1c3f9eab6c4b3a550d2c0d2735ce48eacd61
drm/amd/pm/powerplay/hwmgr/ppevvmath: Place variable declaration under same clause as its use

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h: In function ‘fMultiply’:
 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:22: warning: variable ‘Y_LessThanOne’ set but not used [-Wunused-but-set-variable]
 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:7: warning: variable ‘X_LessThanOne’ set but not used [-Wunused-but-set-variable]

Cc: Evan Quan <evan.quan@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h