[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211018083920.851150-1-luo.penghao@zte.com.cn>
Date: Mon, 18 Oct 2021 08:39:20 +0000
From: luo penghao <cgel.zte@...il.com>
To: Jani Nikula <jani.nikula@...ux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Stephen Rothwell <sfr@...b.auug.org.au>,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, luo penghao <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] drm/i915/display: Remove unused assignment
The assignment will be overwritten by the later, but the variable
is not used.
The clang_analyzer complains as follows:
drivers/gpu/drm/i915/display/intel_dpll.c:1568:2 warning:
Value stored to 'dpio_val' is never read
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: luo penghao <luo.penghao@....com.cn>
---
drivers/gpu/drm/i915/display/intel_dpll.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dpll.c b/drivers/gpu/drm/i915/display/intel_dpll.c
index 28b1616..cb77d7f 100644
--- a/drivers/gpu/drm/i915/display/intel_dpll.c
+++ b/drivers/gpu/drm/i915/display/intel_dpll.c
@@ -1653,7 +1653,6 @@ static void chv_prepare_pll(const struct intel_crtc_state *crtc_state)
bestp1 = crtc_state->dpll.p1;
bestp2 = crtc_state->dpll.p2;
vco = crtc_state->dpll.vco;
- dpio_val = 0;
loopfilter = 0;
vlv_dpio_get(dev_priv);
--
2.15.2
Powered by blists - more mailing lists