selinux: remove unused global variables
authorOndrej Mosnacek <omosnace@redhat.com>
Wed, 6 Jan 2021 13:26:18 +0000 (14:26 +0100)
committerPaul Moore <paul@paul-moore.com>
Tue, 12 Jan 2021 14:49:01 +0000 (09:49 -0500)
All of sel_ib_pkey_list, sel_netif_list, sel_netnode_list, and
sel_netport_list are declared but never used. Remove them.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ibpkey.c
security/selinux/netif.c
security/selinux/netnode.c
security/selinux/netport.c

index 3a63a989e55ee6291e0887c0f630e70fdbeccc3e..20b3b22438205856f590643cabd013140f7a6f0b 100644 (file)
@@ -40,7 +40,6 @@ struct sel_ib_pkey {
        struct rcu_head rcu;
 };
 
-static LIST_HEAD(sel_ib_pkey_list);
 static DEFINE_SPINLOCK(sel_ib_pkey_lock);
 static struct sel_ib_pkey_bkt sel_ib_pkey_hash[SEL_PKEY_HASH_SIZE];
 
index 86813b46fad5f54c41d88f016b6f7af2064cc152..1ab03efe74947a33d368ab3b21b335c3ca07324d 100644 (file)
@@ -36,7 +36,6 @@ struct sel_netif {
 };
 
 static u32 sel_netif_total;
-static LIST_HEAD(sel_netif_list);
 static DEFINE_SPINLOCK(sel_netif_lock);
 static struct list_head sel_netif_hash[SEL_NETIF_HASH_SIZE];
 
index 461fb548453ab3d95993cc1b5806d1411ff1c325..4a7d2ab5b96099b32855ebb29e4921688f043aa3 100644 (file)
@@ -54,7 +54,6 @@ struct sel_netnode {
  * if this becomes a problem we can always add a hash table for each address
  * family later */
 
-static LIST_HEAD(sel_netnode_list);
 static DEFINE_SPINLOCK(sel_netnode_lock);
 static struct sel_netnode_bkt sel_netnode_hash[SEL_NETNODE_HASH_SIZE];
 
index d340f4dcdf5f01990437e4ef3614ec2b7f13d77f..b8bc3897891d913d61fc9eb17ea5675f6b1df14c 100644 (file)
@@ -53,7 +53,6 @@ struct sel_netport {
  * if this becomes a problem we can always add a hash table for each address
  * family later */
 
-static LIST_HEAD(sel_netport_list);
 static DEFINE_SPINLOCK(sel_netport_lock);
 static struct sel_netport_bkt sel_netport_hash[SEL_NETPORT_HASH_SIZE];