提交 0d2e4297 编写于 作者: J Jani Nikula 提交者: Daniel Vetter

drm/i915: reduce indent in i9xx_hpd_irq_handler

Bail out early if nothing to do. No functional changes.
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 b1b38278
...@@ -1756,7 +1756,9 @@ static void i9xx_hpd_irq_handler(struct drm_device *dev) ...@@ -1756,7 +1756,9 @@ static void i9xx_hpd_irq_handler(struct drm_device *dev)
struct drm_i915_private *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
u32 hotplug_status = I915_READ(PORT_HOTPLUG_STAT); u32 hotplug_status = I915_READ(PORT_HOTPLUG_STAT);
if (hotplug_status) { if (!hotplug_status)
return;
I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status); I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status);
/* /*
* Make sure hotplug status is cleared before we clear IIR, or else we * Make sure hotplug status is cleared before we clear IIR, or else we
...@@ -1777,7 +1779,6 @@ static void i9xx_hpd_irq_handler(struct drm_device *dev) ...@@ -1777,7 +1779,6 @@ static void i9xx_hpd_irq_handler(struct drm_device *dev)
if ((IS_G4X(dev) || IS_VALLEYVIEW(dev)) && if ((IS_G4X(dev) || IS_VALLEYVIEW(dev)) &&
hotplug_status & DP_AUX_CHANNEL_MASK_INT_STATUS_G4X) hotplug_status & DP_AUX_CHANNEL_MASK_INT_STATUS_G4X)
dp_aux_irq_handler(dev); dp_aux_irq_handler(dev);
}
} }
static irqreturn_t valleyview_irq_handler(int irq, void *arg) static irqreturn_t valleyview_irq_handler(int irq, void *arg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册