drm/amdgpu/powerplay: silence a warning in smu_v11_0_setup_pptable
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 03:23:18 +0000 (22:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 13:17:39 +0000 (08:17 -0500)
I think gcc is confused as I don't see how size could be used
uninitialized, but go ahead and silence the warning.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 5ff0ad4..9750c41 100644 (file)
@@ -359,7 +359,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;