slip: sl_alloc(): remove unused parameter "dev_t line" [Linux 3.2.102]

This Linux kernel change "slip: sl_alloc(): remove unused parameter “dev_t line”" is included in the Linux 3.2.102 release. This change is authored by Marc Kleine-Budde <mkl [at] pengutronix.de> on Fri Dec 8 12:18:59 2017 +0100. The commit for this change in Linux stable tree is bb4efe4 (patch) which is from upstream commit 936e5d8. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 936e5d8.

slip: sl_alloc(): remove unused parameter "dev_t line"

commit 936e5d8bdfa72577e28ea671d9e2ee4fef0d6b3e upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/slip/slip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c
index 1a6e2ea..d9ebe38 100644
--- a/drivers/net/slip/slip.c
+++ b/drivers/net/slip/slip.c
@@ -719,7 +719,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];
@@ -800,7 +800,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;

Leave a Reply

Your email address will not be published. Required fields are marked *