Skip to content

Commit

Permalink
drm/i915/fdi: convert BUG()'s to MISSING_CASE()
Browse files Browse the repository at this point in the history
These shouldn't happen, but in the off chance they do, we'll want a
warning rather than panic.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b86132ac63f43f79e51eb63f948beccba85bf449.1629906431.git.jani.nikula@intel.com
  • Loading branch information
Jani Nikula committed Aug 27, 2021
1 parent e2cf6af commit 9716846
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/i915/display/intel_fdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,
}
return 0;
default:
BUG();
MISSING_CASE(pipe);
return 0;
}
}

Expand Down Expand Up @@ -217,7 +218,7 @@ static void ivb_update_fdi_bc_bifurcation(const struct intel_crtc_state *crtc_st

break;
default:
BUG();
MISSING_CASE(crtc->pipe);
}
}

Expand Down

0 comments on commit 9716846

Please sign in to comment.