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

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>

+2 -2
+2 -2
drivers/net/can/slcan.c
··· 508 508 } 509 509 510 510 /* 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) 512 512 { 513 513 int i; 514 514 char name[IFNAMSIZ]; ··· 583 583 584 584 /* OK. Find a free SLCAN channel to use. */ 585 585 err = -ENFILE; 586 - sl = slc_alloc(tty_devnum(tty)); 586 + sl = slc_alloc(); 587 587 if (sl == NULL) 588 588 goto err_exit; 589 589