From: Marc Kleine-Budde <mkl@pengutronix.de> Date: 2017-12-08 11:18:59
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>
---
drivers/net/slip/slip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -731,7 +731,7 @@ static void sl_sync(void)/* Find a free SLIP channel, and link in this `tty' line. */-staticstructslip*sl_alloc(dev_tline)+staticstructslip*sl_alloc(void){inti;charname[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)gotoerr_exit;
From: Marc Kleine-Budde <mkl@pengutronix.de> Date: 2017-12-08 11:23:01
Hello Oliver,
I've the corresponding slcan patch already in my queue.
Marc
On 12/08/2017 12:18 PM, Marc Kleine-Budde wrote:
quoted hunk
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>
---
drivers/net/slip/slip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -731,7 +731,7 @@ static void sl_sync(void)/* Find a free SLIP channel, and link in this `tty' line. */-staticstructslip*sl_alloc(dev_tline)+staticstructslip*sl_alloc(void){inti;charname[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)gotoerr_exit;
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
From: David Miller <davem@davemloft.net> Date: 2017-12-08 19:43:14
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Fri, 8 Dec 2017 12:18:59 +0100
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>
Applied.
While reviewing this I noticed that slip_devs[], along with the
arbitrary slip_maxdev limit, can be removed and replaced with
a simply linked list.
All the array is used for it proper teardown during module unload.
This is made even more clear by the fact that the index stored
in dev->base_addr is never ever used.
From: Oliver Hartkopp <socketcan@hartkopp.net> Date: 2017-12-09 17:28:20
On 12/08/2017 12:22 PM, Marc Kleine-Budde wrote:
Hello Oliver,
I've the corresponding slcan patch already in my queue.
Excellent :-)
Thanks,
Oliver
Marc
On 12/08/2017 12:18 PM, Marc Kleine-Budde wrote:
quoted
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>
---
drivers/net/slip/slip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -731,7 +731,7 @@ static void sl_sync(void)/* Find a free SLIP channel, and link in this `tty' line. */-staticstructslip*sl_alloc(dev_tline)+staticstructslip*sl_alloc(void){inti;charname[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)gotoerr_exit;