[PATCH linux-next] drm/i915/display: Remove unused assignment

2021-10-18 Thread luo penghao
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 Signed-off-by: luo penghao --- drive

[PATCH linux-next] drm/i915/display: Remove unused variable and corresponding assignment

2021-10-18 Thread luo penghao
Variable is not used in functions, and its assignment is redundant too. So it should be deleted. The clang_analyzer complains as follows: drivers/gpu/drm/i915/display/vlv_dsi.c:143:2 warning: Value stored to 'data' is never read. Reported-by: Zeal Robot Signed-off-by: l

[PATCH linux-next] drm/i915/display: Remove unused variable and its assignment.

2021-10-18 Thread luo penghao
:2 warning: Value stored to 'bestn' is never read. Reported-by: Zeal Robot Signed-off-by: luo penghao --- drivers/gpu/drm/i915/display/intel_dpll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dpll.c b/drivers/gpu/drm/i915/

[PATCH linux-next] drm/i915/display: Remove unused variable in the for loop.

2021-10-18 Thread luo penghao
Variable is not used in the loop, and its assignment is redundant too. So it should be deleted. The clang_analyzer complains as follows: drivers/gpu/drm/i915/display/intel_fb.c:1018:3 warning: Value stored to 'cpp' is never read. Reported-by: Zeal Robot Signed-off-by: l

[PATCH linux-next] drm: Remove unused variable and its assignment.

2021-10-18 Thread luo penghao
' is never read. Reported-by: Zeal Robot Signed-off-by: luo penghao --- drivers/gpu/drm/drm_crtc_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index bff9175..0e97e0a 100644 --- a/drivers/gpu/drm/drm_crtc_he

[PATCH linux-next] drm/i915: Remove redundant assignments

2021-10-18 Thread luo penghao
From: penghao luo The assignment of variables will be overwritten later, so the assignment here is meaningless. The clang_analyzer complains as follows: drivers/gpu/drm/i915/gem/i915_gem_userptr.c:291: warning: Although the value stored to 'ret' is used in the enclosing expression, the value i