All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/ddi: Ensure that the value assigned to ddi_clk_needed is a bool
@ 2020-01-29 22:05 Vivek Kasireddy
  2020-01-30  3:09 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
  2020-01-30  9:41 ` [Intel-gfx] [PATCH] " Jani Nikula
  0 siblings, 2 replies; 3+ messages in thread
From: Vivek Kasireddy @ 2020-01-29 22:05 UTC (permalink / raw)
  To: intel-gfx; +Cc: Jani Nikula

Currently, the value assigned to the bool variable ddi_clk_needed
is a pointer -- which appears to have happened inadvertently. Therefore,
add a "!!" before the expression on the right to ensure that it results
in a bool.

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
---
 drivers/gpu/drm/i915/display/intel_ddi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index c96f629cddc3..6df485289bc6 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -3109,7 +3109,7 @@ void icl_sanitize_encoder_pll_mapping(struct intel_encoder *encoder)
 	}
 
 	port_mask = BIT(encoder->port);
-	ddi_clk_needed = encoder->base.crtc;
+	ddi_clk_needed = !!encoder->base.crtc;
 
 	if (encoder->type == INTEL_OUTPUT_DSI) {
 		struct intel_encoder *other_encoder;
-- 
2.21.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2020-01-30  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-29 22:05 [Intel-gfx] [PATCH] drm/i915/ddi: Ensure that the value assigned to ddi_clk_needed is a bool Vivek Kasireddy
2020-01-30  3:09 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2020-01-30  9:41 ` [Intel-gfx] [PATCH] " Jani Nikula

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.