Skip to content

Commit 9e2a0d4

Browse files
Charles Hangregkh
authored andcommitted
serial: icom: fix code format problems
Fix below inconsistent indenting smatch warning. smatch warnings: drivers/tty/serial/icom.c:1768 icom_probe() warn: inconsistent indenting Removed that useless (void *), the code would fit on a single 100c line Removed '{' and '}'. Signed-off-by: Charles Han <hanchunchao@inspur.com> Link: https://lore.kernel.org/r/20250305095120.7518-1-hanchunchao@inspur.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 81100b9 commit 9e2a0d4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/tty/serial/icom.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,11 +1764,10 @@ static int icom_probe(struct pci_dev *dev,
17641764
goto probe_exit1;
17651765
}
17661766

1767-
/* save off irq and request irq line */
1768-
retval = request_irq(dev->irq, icom_interrupt, IRQF_SHARED, ICOM_DRIVER_NAME, (void *)icom_adapter);
1769-
if (retval) {
1770-
goto probe_exit2;
1771-
}
1767+
/* save off irq and request irq line */
1768+
retval = request_irq(dev->irq, icom_interrupt, IRQF_SHARED, ICOM_DRIVER_NAME, icom_adapter);
1769+
if (retval)
1770+
goto probe_exit2;
17721771

17731772
retval = icom_load_ports(icom_adapter);
17741773

0 commit comments

Comments
 (0)