gpu: drm: amd: powerplay: Remove logically dead code
Subsystems (2)
PATCH 1/1 gpu: drm: amd: powerplay: Remove logically dead code
Result of pointer airthmentic is never null
fix coverity defect:1451876
Signed-off-by Hariprasad Kelam <[email protected]>
--- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +0 -2
@@ -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 ;
Signature · 1 line
2.7.4
Alex Deucher
AppliedQuoted 6 lines · Hariprasad Kelam
Result of pointer airthmentic is never null
fix coverity defect:1451876
Signed-off-by Hariprasad Kelam <[email protected]>
Applied. thanks!
Alex
Quoted 24 lines
--- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/powerplay/smu_v11_0.c +0
-3@@ -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 ; --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx