Commit 2ef5e757 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

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: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 8e36917d
...@@ -508,7 +508,7 @@ static void slc_sync(void) ...@@ -508,7 +508,7 @@ static void slc_sync(void)
} }
/* Find a free SLCAN channel, and link in this `tty' line. */ /* 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; int i;
char name[IFNAMSIZ]; char name[IFNAMSIZ];
...@@ -583,7 +583,7 @@ static int slcan_open(struct tty_struct *tty) ...@@ -583,7 +583,7 @@ static int slcan_open(struct tty_struct *tty)
/* OK. Find a free SLCAN channel to use. */ /* OK. Find a free SLCAN channel to use. */
err = -ENFILE; err = -ENFILE;
sl = slc_alloc(tty_devnum(tty)); sl = slc_alloc();
if (sl == NULL) if (sl == NULL)
goto err_exit; goto err_exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment