[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1619211404-5022-1-git-send-email-jrdr.linux@gmail.com>
Date: Sat, 24 Apr 2021 02:26:44 +0530
From: Souptick Joarder <jrdr.linux@...il.com>
To: harry.wentland@....com, sunpeng.li@....com,
alexander.deucher@....com, christian.koenig@....com,
airlied@...ux.ie, daniel@...ll.ch, mikita.lipski@....com,
eryk.brol@....com, aurabindo.pillai@....com,
Nicholas.Kazlauskas@....com, stylon.wang@....com,
Wayne.Lin@....com, nirmoy.das@....com, bhanuprakash.modem@...el.com
Cc: amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
Souptick Joarder <jrdr.linux@...il.com>
Subject: [PATCH] drm/amd/display: Remove condition which is always set to True
Kernel test robot throws below warning ->
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:3015:53:
>> warning: address of 'aconnector->mst_port->mst_mgr' will always
>> evaluate to 'true' [-Wpointer-bool-conversion]
if (!(aconnector->port &&
&aconnector->mst_port->mst_mgr))
~~
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Remove the condition which is always set to True.
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Souptick Joarder <jrdr.linux@...il.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
index 9a13f47..8f7df11 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
@@ -3012,7 +3012,7 @@ static int trigger_hpd_mst_set(void *data, u64 val)
if (!aconnector->dc_link)
continue;
- if (!(aconnector->port && &aconnector->mst_port->mst_mgr))
+ if (!aconnector->port)
continue;
link = aconnector->dc_link;
--
1.9.1
Powered by blists - more mailing lists