Skip to content

Commit 2ef5e75

Browse files
can: slcan: slc_alloc(): remove unused parameter "dev_t line"
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>
1 parent 8e36917 commit 2ef5e75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/can/slcan.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void slc_sync(void)
508508
}
509509

510510
/* Find a free SLCAN channel, and link in this `tty' line. */
511-
static struct slcan *slc_alloc(dev_t line)
511+
static struct slcan *slc_alloc(void)
512512
{
513513
int i;
514514
char name[IFNAMSIZ];
@@ -583,7 +583,7 @@ static int slcan_open(struct tty_struct *tty)
583583

584584
/* OK. Find a free SLCAN channel to use. */
585585
err = -ENFILE;
586-
sl = slc_alloc(tty_devnum(tty));
586+
sl = slc_alloc();
587587
if (sl == NULL)
588588
goto err_exit;
589589

0 commit comments

Comments
 (0)