Skip to content

Commit

Permalink
audit: remove open_arg() function that is never used
Browse files Browse the repository at this point in the history
open_arg() was added in commit 55669bf "audit: AUDIT_PERM support"
and never used.  Remove it.

Signed-off-by: Richard Guy Briggs <[email protected]>
  • Loading branch information
rgbriggs authored and eparis committed Sep 23, 2014
1 parent 9ef9151 commit f874738
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f874738

Please sign in to comment.