[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171208.144312.2056718125379523079.davem@davemloft.net>
Date: Fri, 08 Dec 2017 14:43:12 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mkl@...gutronix.de
Cc: netdev@...r.kernel.org, kernel@...gutronix.de
Subject: Re: [PATCH] slip: sl_alloc(): remove unused parameter "dev_t line"
From: Marc Kleine-Budde <mkl@...gutronix.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@...gutronix.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.
Powered by blists - more mailing lists