From: Hariprasad Kelam Date: Mon, 5 Aug 2019 17:21:38 +0000 (+0530) Subject: gpu: drm: amd: powerplay: Remove logically dead code X-Git-Tag: v5.4-rc1~106^2~17^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1e00c3c0d37f65241236d7731ef6bb92f0d07f;p=thirdparty%2Fkernel%2Flinux.git gpu: drm: amd: powerplay: Remove logically dead code Result of pointer airthmentic is never null fix coverity defect:1451876 Signed-off-by: Hariprasad Kelam Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c index 8c4d3ee0295a9..54618d7d69271 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;