usb: serial: cp210x: Fix return type to void
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 19 Oct 2022 08:13:58 +0000 (17:13 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 09:33:04 +0000 (18:33 +0900)
Fix return type to void for fix build error.

Change-Id: I507ea7aa5566ccdda17e69a60cc86ff756f0830a
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/usb/serial/cp210x-stlink.c

index 19bad5d..ee7ac85 100644 (file)
@@ -44,7 +44,7 @@ static int cp210x_tiocmset_port(struct usb_serial_port *port,
                unsigned int, unsigned int);
 static void cp210x_break_ctl(struct tty_struct *, int);
 static int cp210x_port_probe(struct usb_serial_port *);
-static int cp210x_port_remove(struct usb_serial_port *);
+static void cp210x_port_remove(struct usb_serial_port *);
 static void cp210x_dtr_rts(struct usb_serial_port *p, int on);
 
 static const struct usb_device_id id_table[] = {
@@ -1311,14 +1311,12 @@ static int cp210x_port_probe(struct usb_serial_port *port)
        return 0;
 }
 
-static int cp210x_port_remove(struct usb_serial_port *port)
+static void cp210x_port_remove(struct usb_serial_port *port)
 {
        struct cp210x_port_private *port_priv;
 
        port_priv = usb_get_serial_port_data(port);
        kfree(port_priv);
-
-       return 0;
 }
 
 module_usb_serial_driver(serial_drivers, id_table);