summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2019-08-21 22:25:27 -0500
committerDave Airlie <airlied@redhat.com>2019-08-23 11:46:32 +1000
commit75710f08ea7e41b2f7010da3f6deab061f7a853b (patch)
treec6043c2c2fa64614b40b58831ad876ac5be05352
parentcf3627fb1af183dc385022029c4b5232f6eb715c (diff)
drm/amdgpu/powerplay: silence a warning in smu_v11_0_setup_pptabledrm-fixes-2019-08-23
I think gcc is confused as I don't see how size could be used unitialized, but go ahead and silence the warning. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190822032527.1376-1-alexander.deucher@amd.com
-rw-r--r--drivers/gpu/drm/amd/powerplay/smu_v11_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
index 3ac061a3c3c5..53097961bf2b 100644
--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
@@ -326,7 +326,7 @@ static int smu_v11_0_setup_pptable(struct smu_context *smu)
struct amdgpu_device *adev = smu->adev;
const struct smc_firmware_header_v1_0 *hdr;
int ret, index;
- uint32_t size;
+ uint32_t size = 0;
uint16_t atom_table_size;
uint8_t frev, crev;
void *table;