diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-08-05 22:51:38 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-06 13:53:27 -0500 |
commit | 2a1e00c3c0d37f65241236d7731ef6bb92f0d07f (patch) | |
tree | f1f1fe80de7d43bf5ce3b4076e46296e23293103 /drivers/gpu | |
parent | b56a53db4ce10320a27224d4b2f83f9aaec27c89 (diff) | |
download | linux-2a1e00c3c0d37f65241236d7731ef6bb92f0d07f.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c index 8c4d3ee0295a..54618d7d6927 100644 --- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c @@ -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; |