|
@@ -731,7 +731,7 @@ static void sl_sync(void)
|
|
|
|
|
|
|
|
|
/* 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;
|
|
|
char name[IFNAMSIZ];
|
|
@@ -809,7 +809,7 @@ static int slip_open(struct tty_struct *tty)
|
|
|
|
|
|
/* OK. Find a free SLIP channel to use. */
|
|
|
err = -ENFILE;
|
|
|
- sl = sl_alloc(tty_devnum(tty));
|
|
|
+ sl = sl_alloc();
|
|
|
if (sl == NULL)
|
|
|
goto err_exit;
|
|
|
|