]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
audit: remove open_arg() function that is never used
authorRichard Guy Briggs <rgb@redhat.com>
Mon, 15 Sep 2014 20:17:37 +0000 (16:17 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 23 Sep 2014 20:37:55 +0000 (16:37 -0400)
open_arg() was added in commit 55669bfa "audit: AUDIT_PERM support"
and never used.  Remove it.

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

index 4e17443fd1efb1f26d381fd15f0da72fbd12f154..63a74a703c976787fbd76996d5ace745b3ec6e58 100644 (file)
@@ -126,14 +126,6 @@ struct audit_tree_refs {
        struct audit_chunk *c[31];
 };
 
-static inline int open_arg(int flags, int mask)
-{
-       int n = ACC_MODE(flags);
-       if (flags & (O_TRUNC | O_CREAT))
-               n |= AUDIT_PERM_WRITE;
-       return n & mask;
-}
-
 static int audit_match_perm(struct audit_context *ctx, int mask)
 {
        unsigned n;