]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/auditsc.c
remove some global twl4030 IRQ defines
[linux-2.6-omap-h63xx.git] / kernel / auditsc.c
index 972f8e61d36ac4ca7742038b2a3f3004f1857eb9..59cedfb040e7864cdfa3199ae2557f236cdd1122 100644 (file)
@@ -243,10 +243,11 @@ static inline int open_arg(int flags, int mask)
 
 static int audit_match_perm(struct audit_context *ctx, int mask)
 {
+       unsigned n;
        if (unlikely(!ctx))
                return 0;
 
-       unsigned n = ctx->major;
+       n = ctx->major;
        switch (audit_classify_syscall(ctx->arch, n)) {
        case 0: /* native */
                if ((mask & AUDIT_PERM_WRITE) &&