summaryrefslogtreecommitdiff
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2017-12-08 14:10:34 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-01-05 13:12:08 +0300
commit2ef5e75706d87065bc382bf85f1503008a5a1e7a (patch)
tree200332489420ff3a905c33cccca15186d61c3206 /drivers/net/can
parent8e36917d73ac4b48f787269695e593fe26011633 (diff)
downloadlinux-2ef5e75706d87065bc382bf85f1503008a5a1e7a.tar.xz
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 <o.rempel@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/slcan.c4
1 files changed, 2 insertions, 2 deletions
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;