[PATCH] atm/fore200e: Delete unused 'fore200e_boards'

linux@treblig.org posted 1 patch 1 year, 7 months ago
drivers/atm/fore200e.c | 3 ---
drivers/atm/fore200e.h | 1 -
2 files changed, 4 deletions(-)
[PATCH] atm/fore200e: Delete unused 'fore200e_boards'
Posted by linux@treblig.org 1 year, 7 months ago
From: "Dr. David Alan Gilbert" <linux@treblig.org>

This list looks like it's been unused since the OF conversion in
2008 in

commit 826b6cfcd5d4 ("fore200e: Convert over to pure OF driver.")

This also means we can remove the 'entry' member for the list.

Build tested only.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/atm/fore200e.c | 3 ---
 drivers/atm/fore200e.h | 1 -
 2 files changed, 4 deletions(-)

diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
index 9fb1575f8d883..cb00f8244e411 100644
--- a/drivers/atm/fore200e.c
+++ b/drivers/atm/fore200e.c
@@ -94,9 +94,6 @@
 
 static const struct atmdev_ops   fore200e_ops;
 
-static LIST_HEAD(fore200e_boards);
-
-
 MODULE_AUTHOR("Christophe Lizzi - credits to Uwe Dannowski and Heikki Vatiainen");
 MODULE_DESCRIPTION("FORE Systems 200E-series ATM driver - version " FORE200E_VERSION);
 
diff --git a/drivers/atm/fore200e.h b/drivers/atm/fore200e.h
index caf0ea6a328a8..5d95fe9fd8364 100644
--- a/drivers/atm/fore200e.h
+++ b/drivers/atm/fore200e.h
@@ -830,7 +830,6 @@ typedef struct fore200e_vc_map {
 /* per-device data */
 
 typedef struct fore200e {
-    struct       list_head     entry;                  /* next device                        */
     const struct fore200e_bus* bus;                    /* bus-dependent code and data        */
     union        fore200e_regs regs;                   /* bus-dependent registers            */
     struct       atm_dev*      atm_dev;                /* ATM device                         */
-- 
2.44.0
Re: [PATCH] atm/fore200e: Delete unused 'fore200e_boards'
Posted by Breno Leitao 1 year, 7 months ago
On Fri, May 03, 2024 at 01:18:22AM +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> This list looks like it's been unused since the OF conversion in
> 2008 in
> 
> commit 826b6cfcd5d4 ("fore200e: Convert over to pure OF driver.")
> 
> This also means we can remove the 'entry' member for the list.
> 
> Build tested only.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Reviewed-by: Breno Leitao <leitao@debian.org>