drm/i915: Add some curly braces
intel_enable_pipe() looks rather confusing when one side doesn't have the curly braces, and the other one does. And what's even worse, there's another if-else inside the braceless side. Let's put braces around it to make it clear which branch goes where. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1470418894-1249-1-git-send-email-ville.syrjala@linux.intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5a198b8c53
commit
09fa8bb909
|
@ -1959,12 +1959,12 @@ static void intel_enable_pipe(struct intel_crtc *crtc)
|
|||
* a plane. On ILK+ the pipe PLLs are integrated, so we don't
|
||||
* need the check.
|
||||
*/
|
||||
if (HAS_GMCH_DISPLAY(dev_priv))
|
||||
if (HAS_GMCH_DISPLAY(dev_priv)) {
|
||||
if (intel_crtc_has_type(crtc->config, INTEL_OUTPUT_DSI))
|
||||
assert_dsi_pll_enabled(dev_priv);
|
||||
else
|
||||
assert_pll_enabled(dev_priv, pipe);
|
||||
else {
|
||||
} else {
|
||||
if (crtc->config->has_pch_encoder) {
|
||||
/* if driving the PCH, we need FDI enabled */
|
||||
assert_fdi_rx_pll_enabled(dev_priv, pch_transcoder);
|
||||
|
|
Loading…
Reference in New Issue