Skip to content

Commit 63f39ad

Browse files
committed
drm/i915: Add missing else to the if ladder in missing else
The if ladder in gen8_de_pipe_fault_mask() was missing one else, add it. Doesn't actually matter since each if branch just returns directly. But the code is less confusing when you always do things the same way. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250217070047.953-2-ville.syrjala@linux.intel.com
1 parent 1bcba22 commit 63f39ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/display/intel_display_irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ static u32 gen8_de_pipe_fault_mask(struct drm_i915_private *dev_priv)
908908
GEN9_PIPE_PLANE3_FAULT |
909909
GEN9_PIPE_PLANE2_FAULT |
910910
GEN9_PIPE_PLANE1_FAULT;
911-
if (DISPLAY_VER(display) >= 13 || HAS_D12_PLANE_MINIMIZATION(display))
911+
else if (DISPLAY_VER(display) >= 13 || HAS_D12_PLANE_MINIMIZATION(display))
912912
return GEN12_PIPEDMC_FAULT |
913913
GEN9_PIPE_CURSOR_FAULT |
914914
GEN11_PIPE_PLANE5_FAULT |

0 commit comments

Comments
 (0)