drm/komeda: Use IRQ_RETVAL shorthand in d71_irq_handler
authorMihail Atanassov <Mihail.Atanassov@arm.com>
Fri, 20 Sep 2019 15:13:08 +0000 (15:13 +0000)
committerAyan kumar halder <ayan.halder@arm.com>
Tue, 1 Oct 2019 11:02:39 +0000 (12:02 +0100)
No change in behaviour; IRQ_RETVAL is about twice as popular as
manually writing out the ternary.

Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Ayan kumar halder <ayan.halder@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190920151247.25128-1-mihail.atanassov@arm.com
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c

index 2060cd4cd96b88afb221b823cf90160c3be9b745..822b23a1ce75a826a4c3d58a69175faea039a922 100644 (file)
@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)
        if (gcu_status & GLB_IRQ_STATUS_PIPE1)
                evts->pipes[1] |= get_pipeline_event(d71->pipes[1], gcu_status);
 
-       return gcu_status ? IRQ_HANDLED : IRQ_NONE;
+       return IRQ_RETVAL(gcu_status);
 }
 
 #define ENABLED_GCU_IRQS       (GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \