Commit 936e5d8b authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by David S. Miller

slip: sl_alloc(): remove unused parameter "dev_t line"

The first and only parameter of sl_alloc() is unused, so remove it.

Fixes: 5342b77c slip: ("Clean up create and destroy")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2deeb495
...@@ -731,7 +731,7 @@ static void sl_sync(void) ...@@ -731,7 +731,7 @@ static void sl_sync(void)
/* Find a free SLIP channel, and link in this `tty' line. */ /* Find a free SLIP channel, and link in this `tty' line. */
static struct slip *sl_alloc(dev_t line) static struct slip *sl_alloc(void)
{ {
int i; int i;
char name[IFNAMSIZ]; char name[IFNAMSIZ];
...@@ -809,7 +809,7 @@ static int slip_open(struct tty_struct *tty) ...@@ -809,7 +809,7 @@ static int slip_open(struct tty_struct *tty)
/* OK. Find a free SLIP channel to use. */ /* OK. Find a free SLIP channel to use. */
err = -ENFILE; err = -ENFILE;
sl = sl_alloc(tty_devnum(tty)); sl = sl_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