aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/slip/slip.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2017-12-08 06:18:59 -0500
committerDavid S. Miller <davem@davemloft.net>2017-12-08 14:41:02 -0500
commit936e5d8bdfa72577e28ea671d9e2ee4fef0d6b3e (patch)
tree65a01070fcaabc82c25cf8785095113acdf37991 /drivers/net/slip/slip.c
parent2deeb49550c1e00c7f4f43180ea97e9f1da809f9 (diff)
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 <mkl@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/slip/slip.c')
-rw-r--r--drivers/net/slip/slip.c4
1 files changed, 2 insertions, 2 deletions
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)
731 731
732 732
733/* Find a free SLIP channel, and link in this `tty' line. */ 733/* Find a free SLIP channel, and link in this `tty' line. */
734static struct slip *sl_alloc(dev_t line) 734static struct slip *sl_alloc(void)
735{ 735{
736 int i; 736 int i;
737 char name[IFNAMSIZ]; 737 char name[IFNAMSIZ];
@@ -809,7 +809,7 @@ static int slip_open(struct tty_struct *tty)
809 809
810 /* OK. Find a free SLIP channel to use. */ 810 /* OK. Find a free SLIP channel to use. */
811 err = -ENFILE; 811 err = -ENFILE;
812 sl = sl_alloc(tty_devnum(tty)); 812 sl = sl_alloc();
813 if (sl == NULL) 813 if (sl == NULL)
814 goto err_exit; 814 goto err_exit;
815 815