Commit 97168460 authored by Jani Nikula's avatar Jani Nikula

drm/i915/fdi: convert BUG()'s to MISSING_CASE()

These shouldn't happen, but in the off chance they do, we'll want a
warning rather than panic.
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b86132ac63f43f79e51eb63f948beccba85bf449.1629906431.git.jani.nikula@intel.com
parent e2cf6afc
...@@ -93,7 +93,8 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe, ...@@ -93,7 +93,8 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,
} }
return 0; return 0;
default: default:
BUG(); MISSING_CASE(pipe);
return 0;
} }
} }
...@@ -217,7 +218,7 @@ static void ivb_update_fdi_bc_bifurcation(const struct intel_crtc_state *crtc_st ...@@ -217,7 +218,7 @@ static void ivb_update_fdi_bc_bifurcation(const struct intel_crtc_state *crtc_st
break; break;
default: default:
BUG(); MISSING_CASE(crtc->pipe);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment