[Intel-gfx] [PATCH] drm/i915: Fix parenthesis and dbuf condition

Stanislav Lisovskiy stanislav.lisovskiy at intel.com
Thu Jun 10 07:02:13 UTC 2021


Removed excessive parenthesis and placed && on
previous line in DBUF state checker.

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy at intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 97d9cde64e26..ded0fb8ed817 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -8324,8 +8324,8 @@ void intel_dbuf_post_plane_update(struct intel_atomic_state *state)
 		intel_atomic_get_old_dbuf_state(state);
 
 	if (!new_dbuf_state ||
-	    ((new_dbuf_state->enabled_slices == old_dbuf_state->enabled_slices)
-	    && (new_dbuf_state->joined_mbus == old_dbuf_state->joined_mbus)))
+	    (new_dbuf_state->enabled_slices == old_dbuf_state->enabled_slices &&
+	     new_dbuf_state->joined_mbus == old_dbuf_state->joined_mbus))
 		return;
 
 	WARN_ON(!new_dbuf_state->base.changed);
-- 
2.24.1.485.gad05a3d8e5



More information about the Intel-gfx mailing list