All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH -next] drm/i915: remove unreachable code
@ 2023-05-31  2:17 ` Yang Li
  0 siblings, 0 replies; 12+ messages in thread
From: Yang Li @ 2023-05-31  2:17 UTC (permalink / raw)
  To: airlied
  Cc: intel-gfx, Abaci Robot, linux-kernel, Yang Li, dri-devel, daniel,
	rodrigo.vivi

The code after the return will not be executed, so remove them.

Eliminate the following warning:
drivers/gpu/drm/i915/display/intel_color.c:1808 intel_color_prepare_commit() warn: ignoring unreachable code.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5342
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/gpu/drm/i915/display/intel_color.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
index 8966e6560516..0bfebac1e3e2 100644
--- a/drivers/gpu/drm/i915/display/intel_color.c
+++ b/drivers/gpu/drm/i915/display/intel_color.c
@@ -1804,11 +1804,6 @@ void intel_color_prepare_commit(struct intel_crtc_state *crtc_state)
 
 	/* FIXME DSB has issues loading LUTs, disable it for now */
 	return;
-
-	if (!crtc_state->pre_csc_lut && !crtc_state->post_csc_lut)
-		return;
-
-	crtc_state->dsb = intel_dsb_prepare(crtc, 1024);
 }
 
 void intel_color_cleanup_commit(struct intel_crtc_state *crtc_state)
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-05-31 16:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-31  2:17 [Intel-gfx] [PATCH -next] drm/i915: remove unreachable code Yang Li
2023-05-31  2:17 ` Yang Li
2023-05-31  2:17 ` Yang Li
2023-05-31  9:22 ` [Intel-gfx] " Andi Shyti
2023-05-31  9:22   ` Andi Shyti
2023-05-31  9:22   ` Andi Shyti
2023-05-31 15:32 ` kernel test robot
2023-05-31 15:32   ` kernel test robot
2023-05-31 15:32   ` kernel test robot
2023-05-31 16:13 ` [Intel-gfx] " kernel test robot
2023-05-31 16:13   ` kernel test robot
2023-05-31 16:13   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.