From 2ef5e75706d87065bc382bf85f1503008a5a1e7a Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Fri, 8 Dec 2017 12:10:34 +0100 Subject: 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: Oleksij Rempel Signed-off-by: Marc Kleine-Budde --- drivers/net/can/slcan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/net') diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index 5d067c1b987f..89d60d8e467c 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c @@ -508,7 +508,7 @@ static void slc_sync(void) } /* 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; char name[IFNAMSIZ]; @@ -583,7 +583,7 @@ static int slcan_open(struct tty_struct *tty) /* OK. Find a free SLCAN channel to use. */ err = -ENFILE; - sl = slc_alloc(tty_devnum(tty)); + sl = slc_alloc(); if (sl == NULL) goto err_exit; -- cgit v1.2.3