Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Charles Han and committed by
Greg Kroah-Hartman
9e2a0d45 81100b9a

+4 -5
+4 -5
drivers/tty/serial/icom.c
··· 1764 1764 goto probe_exit1; 1765 1765 } 1766 1766 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; 1772 1771 1773 1772 retval = icom_load_ports(icom_adapter); 1774 1773