cleanup in ss/services.c
authorKaiGai Kohei <kaigai@ak.jp.nec.com>
Thu, 18 Jun 2009 08:30:07 +0000 (17:30 +0900)
committerJames Morris <jmorris@namei.org>
Thu, 18 Jun 2009 11:53:44 +0000 (21:53 +1000)
It is a cleanup patch to cut down a line within 80 columns.

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
--
 security/selinux/ss/services.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/services.c

index deeec6c013aef6dee9d664e3fe46b0a892d9f27e..cad5765ca1cbb10a48523f9a51f48d75e1aee039 100644 (file)
@@ -479,7 +479,7 @@ static int context_struct_compute_av(struct context *scontext,
                if ((constraint->permissions & (avd->allowed)) &&
                    !constraint_expr_eval(scontext, tcontext, NULL,
                                          constraint->expr)) {
-                       avd->allowed = (avd->allowed) & ~(constraint->permissions);
+                       avd->allowed &= ~(constraint->permissions);
                }
                constraint = constraint->next;
        }
@@ -498,8 +498,8 @@ static int context_struct_compute_av(struct context *scontext,
                                break;
                }
                if (!ra)
-                       avd->allowed = (avd->allowed) & ~(PROCESS__TRANSITION |
-                                                       PROCESS__DYNTRANSITION);
+                       avd->allowed &= ~(PROCESS__TRANSITION |
+                                         PROCESS__DYNTRANSITION);
        }
 
        /*