diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-09-15 16:17:37 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:37:55 -0400 |
commit | f874738e8c178b19479f7b143211a1df00367988 (patch) | |
tree | 90655d73d2d244a0d9870c6cd1323074c54e9cea | |
parent | 9ef91514774a140e468f99d73d7593521e6d25dc (diff) |
audit: remove open_arg() function that is never used
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>
-rw-r--r-- | kernel/auditsc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 4e17443fd1ef..63a74a703c97 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -126,14 +126,6 @@ struct audit_tree_refs { | |||
126 | struct audit_chunk *c[31]; | 126 | struct audit_chunk *c[31]; |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static inline int open_arg(int flags, int mask) | ||
130 | { | ||
131 | int n = ACC_MODE(flags); | ||
132 | if (flags & (O_TRUNC | O_CREAT)) | ||
133 | n |= AUDIT_PERM_WRITE; | ||
134 | return n & mask; | ||
135 | } | ||
136 | |||
137 | static int audit_match_perm(struct audit_context *ctx, int mask) | 129 | static int audit_match_perm(struct audit_context *ctx, int mask) |
138 | { | 130 | { |
139 | unsigned n; | 131 | unsigned n; |