Skip to content

Commit 4e353ff

Browse files
committed
PCI: switchtec: Simplify switchtec_dma_mrpc_isr()
The "ret" variable in switchtec_dma_mrpc_isr() is superfluous. Remove it and just return the value. No functional change intended. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]>
1 parent 1b929c0 commit 4e353ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pci/switch/switchtec.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,15 +1480,13 @@ static irqreturn_t switchtec_event_isr(int irq, void *dev)
14801480
static irqreturn_t switchtec_dma_mrpc_isr(int irq, void *dev)
14811481
{
14821482
struct switchtec_dev *stdev = dev;
1483-
irqreturn_t ret = IRQ_NONE;
14841483

14851484
iowrite32(SWITCHTEC_EVENT_CLEAR |
14861485
SWITCHTEC_EVENT_EN_IRQ,
14871486
&stdev->mmio_part_cfg->mrpc_comp_hdr);
14881487
schedule_work(&stdev->mrpc_work);
14891488

1490-
ret = IRQ_HANDLED;
1491-
return ret;
1489+
return IRQ_HANDLED;
14921490
}
14931491

14941492
static int switchtec_init_isr(struct switchtec_dev *stdev)

0 commit comments

Comments
 (0)