audit: reduce scope of audit_net_id
authorRichard Guy Briggs <rgb@redhat.com>
Mon, 26 May 2014 14:59:28 +0000 (10:59 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 23 Sep 2014 20:37:50 +0000 (16:37 -0400)
audit_net_id isn't used outside kernel/audit.c.  Reduce its scope.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
kernel/audit.c

index 3ef2e0e797e8e576cc6c922d65ef2dc6e40e2d86..9a951e67a89e5a45e0963cfe558339face43b95b 100644 (file)
@@ -126,7 +126,7 @@ static atomic_t    audit_lost = ATOMIC_INIT(0);
 
 /* The netlink socket. */
 static struct sock *audit_sock;
-int audit_net_id;
+static int audit_net_id;
 
 /* Hash for inode-based rules */
 struct list_head audit_inode_hash[AUDIT_INODE_BUCKETS];