diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-19 18:15:07 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-22 20:27:34 +0300 |
commit | 5300990c0370e804e49d9a59d928c5d53fb73487 (patch) | |
tree | 08ed922afd172662039c082ec9e9410070f4afe8 /kernel/auditsc.c | |
parent | 482928d59db668b8d82a48717f78986d8cea72e9 (diff) | |
download | linux-5300990c0370e804e49d9a59d928c5d53fb73487.tar.xz |
Sanitize f_flags helpers
* pull ACC_MODE to fs.h; we have several copies all over the place
* nightmarish expression calculating f_mode by f_flags deserves a helper
too (OPEN_FMODE(flags))
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 267e484f0198..fc0f928167e7 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -250,7 +250,6 @@ struct audit_context { #endif }; -#define ACC_MODE(x) ("\004\002\006\006"[(x)&O_ACCMODE]) static inline int open_arg(int flags, int mask) { int n = ACC_MODE(flags); |