aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/netnode.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <[email protected]>2021-01-06 13:26:18 +0000
committerPaul Moore <[email protected]>2021-01-12 14:49:01 +0000
commit46434ba040935f5aadcb428c774c74875d280501 (patch)
tree2094d265b077b88e4ebdc6cde5779145ff50ff3b /security/selinux/netnode.c
parentselinux: fix inconsistency between inode_getxattr and inode_listsecurity (diff)
downloadkernel-46434ba040935f5aadcb428c774c74875d280501.tar.gz
kernel-46434ba040935f5aadcb428c774c74875d280501.zip
selinux: remove unused global variables
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 <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/netnode.c')
-rw-r--r--security/selinux/netnode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/selinux/netnode.c b/security/selinux/netnode.c
index 461fb548453a..4a7d2ab5b960 100644
--- a/security/selinux/netnode.c
+++ b/security/selinux/netnode.c
@@ -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];