gpu: drm: amd: powerplay: Remove logically dead code
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Mon, 5 Aug 2019 17:21:38 +0000 (22:51 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2019 18:53:27 +0000 (13:53 -0500)
Result of pointer airthmentic is never null

fix coverity defect:1451876

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 8c4d3ee..54618d7 100644 (file)
@@ -736,8 +736,6 @@ static int smu_v11_0_write_watermarks_table(struct smu_context *smu)
        struct smu_table *table = NULL;
 
        table = &smu_table->tables[SMU_TABLE_WATERMARKS];
-       if (!table)
-               return -EINVAL;
 
        if (!table->cpu_addr)
                return -EINVAL;