Skip to content

Commit 22824fa

Browse files
committed
drm/i915: Add missing 'else' to intel_digital_port_connected()
intel_digital_port_connected() lacks one 'else'. There's no actual harm in not having it since each branch has an unconditional return, so it can't accidentally end up in taking two branches instead of just the one. But let's be consistent and add the 'else' anyway. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1455201868-31527-1-git-send-email-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
1 parent 0780cd3 commit 22824fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_dp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4561,7 +4561,7 @@ bool intel_digital_port_connected(struct drm_i915_private *dev_priv,
45614561
{
45624562
if (HAS_PCH_IBX(dev_priv))
45634563
return ibx_digital_port_connected(dev_priv, port);
4564-
if (HAS_PCH_SPLIT(dev_priv))
4564+
else if (HAS_PCH_SPLIT(dev_priv))
45654565
return cpt_digital_port_connected(dev_priv, port);
45664566
else if (IS_BROXTON(dev_priv))
45674567
return bxt_digital_port_connected(dev_priv, port);

0 commit comments

Comments
 (0)