can: slcan: slc_alloc(): remove unused parameter "dev_t line"
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 8 Dec 2017 11:10:34 +0000 (12:10 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 5 Jan 2018 10:12:08 +0000 (11:12 +0100)
The first and only parameter of slc_alloc() is unused, so remove it.

Suggested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/slcan.c

index 5d067c1b987f8d84dd106c58350e7441dffc66aa..89d60d8e467c955b56e739b6075702c90b12b470 100644 (file)
@@ -508,7 +508,7 @@ static void slc_sync(void)
 }
 
 /* Find a free SLCAN channel, and link in this `tty' line. */
-static struct slcan *slc_alloc(dev_t line)
+static struct slcan *slc_alloc(void)
 {
        int i;
        char name[IFNAMSIZ];
@@ -583,7 +583,7 @@ static int slcan_open(struct tty_struct *tty)
 
        /* OK.  Find a free SLCAN channel to use. */
        err = -ENFILE;
-       sl = slc_alloc(tty_devnum(tty));
+       sl = slc_alloc();
        if (sl == NULL)
                goto err_exit;