]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: icom: fix code format problems
authorCharles Han <hanchunchao@inspur.com>
Wed, 5 Mar 2025 09:51:20 +0000 (17:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:10:40 +0000 (08:10 -0700)
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>
drivers/tty/serial/icom.c

index 29e42831df39c02501d682e8f3e7e429b1080268..7fb995a8490e12f81d986699af09bf74c58c39c8 100644 (file)
@@ -1764,11 +1764,10 @@ static int icom_probe(struct pci_dev *dev,
                goto probe_exit1;
        }
 
-        /* save off irq and request irq line */
-        retval = request_irq(dev->irq, icom_interrupt, IRQF_SHARED, ICOM_DRIVER_NAME, (void *)icom_adapter);
-        if (retval) {
-                 goto probe_exit2;
-        }
+       /* save off irq and request irq line */
+       retval = request_irq(dev->irq, icom_interrupt, IRQF_SHARED, ICOM_DRIVER_NAME, icom_adapter);
+       if (retval)
+               goto probe_exit2;
 
        retval = icom_load_ports(icom_adapter);