Skip to content

Commit 00d3c2b

Browse files
ujfalusivinodkoul
authored andcommitted
soundwire: cadence: Remove ret variable from sdw_cdns_irq()
The ret is not used in the interrupt handler, it is just returned without any condition or change. We can return the IRQ_HANDLED directly. Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Guennadi Liakhovetski <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Rander Wang <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 9f9bc7d commit 00d3c2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/soundwire/cadence_master.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ irqreturn_t sdw_cdns_irq(int irq, void *dev_id)
822822
{
823823
struct sdw_cdns *cdns = dev_id;
824824
u32 int_status;
825-
int ret = IRQ_HANDLED;
826825

827826
/* Check if the link is up */
828827
if (!cdns->link_up)
@@ -900,7 +899,7 @@ irqreturn_t sdw_cdns_irq(int irq, void *dev_id)
900899
}
901900

902901
cdns_writel(cdns, CDNS_MCP_INTSTAT, int_status);
903-
return ret;
902+
return IRQ_HANDLED;
904903
}
905904
EXPORT_SYMBOL(sdw_cdns_irq);
906905

0 commit comments

Comments
 (0)