From: Marc Kleine-Budde Date: Fri, 8 Dec 2017 11:18:59 +0000 (+0100) Subject: slip: sl_alloc(): remove unused parameter "dev_t line" X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=936e5d8bdfa72577e28ea671d9e2ee4fef0d6b3e;p=openwrt%2Fstaging%2Fblogic.git slip: sl_alloc(): remove unused parameter "dev_t line" The first and only parameter of sl_alloc() is unused, so remove it. Fixes: 5342b77c4123 slip: ("Clean up create and destroy") Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller --- diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c index cc63102ca96e..8940417c30e5 100644 --- a/drivers/net/slip/slip.c +++ b/drivers/net/slip/slip.c @@ -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;