]> Git Repo - linux.git/commitdiff
drm/amdgpu/powerplay: silence a warning in smu_v11_0_setup_pptable
authorAlex Deucher <[email protected]>
Thu, 22 Aug 2019 03:25:27 +0000 (22:25 -0500)
committerDave Airlie <[email protected]>
Fri, 23 Aug 2019 01:46:32 +0000 (11:46 +1000)
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 <[email protected]>
Reviewed-by: Evan Quan <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 3ac061a3c3c5a2fcff9e6c31914a8394fe93dc4d..53097961bf2b7239b4076e924e7e5ba6f263cdc6 100644 (file)
@@ -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;
This page took 0.062486 seconds and 4 git commands to generate.