diff options
author | Ivan Vecera <ivecera@redhat.com> | 2016-07-29 19:52:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-08 15:41:27 -0700 |
commit | a1f4064b1aa34b8176bda36946bbb4a5ceeb4ce7 (patch) | |
tree | 719b292504f26ae0dedd9226b962ee1b778a540b /drivers/net/ethernet/brocade/bna/bnad.c | |
parent | 9f3377efa6bc20c234241938ec04f2dca796d6f7 (diff) |
bna: remove useless linked list
Remove global variable bnad_list and bnad->list_entry that are used
as list of bna driver instances. It is not necessary and useless.
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bnad.c')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index 771cc267f217..696bbae36c88 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -56,7 +56,6 @@ MODULE_PARM_DESC(bna_debugfs_enable, "Enables debugfs feature, default=1," static u32 bnad_rxqs_per_cq = 2; static u32 bna_id; static struct mutex bnad_list_mutex; -static LIST_HEAD(bnad_list); static const u8 bnad_bcast_addr[] __aligned(2) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; @@ -80,7 +79,6 @@ static void bnad_add_to_list(struct bnad *bnad) { mutex_lock(&bnad_list_mutex); - list_add_tail(&bnad->list_entry, &bnad_list); bnad->id = bna_id++; mutex_unlock(&bnad_list_mutex); } @@ -89,7 +87,6 @@ static void bnad_remove_from_list(struct bnad *bnad) { mutex_lock(&bnad_list_mutex); - list_del(&bnad->list_entry); mutex_unlock(&bnad_list_mutex); } |