lkml.org 
[lkml]   [2021]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH linux-next] drm/i915/display: Delete redundant post_mask assignment
Date
From: luo penghao <luo.penghao@zte.com.cn>

This value will be overwritten by the following if statement, even
if the if is not executed, the value will not be used

The clang_analyzer complains as follows:

Value stored to 'port_mask' is never read

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
---
drivers/gpu/drm/i915/display/intel_ddi.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index bd18432..3aad0c3 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -2011,7 +2011,6 @@ void intel_ddi_sanitize_encoder_pll_mapping(struct intel_encoder *encoder)
return;
}

- port_mask = BIT(encoder->port);
ddi_clk_needed = encoder->base.crtc;

if (encoder->type == INTEL_OUTPUT_DSI) {
--
2.15.2

\
 
 \ /
  Last update: 2021-12-08 08:46    [W:0.086 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site