mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 00:25:24 -04:00
gpu: drm: amd: powerplay: Remove logically dead code
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>
This commit is contained in:
committed by
Alex Deucher
parent
b56a53db4c
commit
2a1e00c3c0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user