summaryrefslogtreecommitdiff
path: root/security/selinux/ss/status.c
diff options
context:
space:
mode:
authorKaiGai Kohei <kaigai@ak.jp.nec.com>2010-09-30 11:49:55 +0900
committerJames Morris <jmorris@namei.org>2010-10-21 10:12:41 +1100
commit36f7f28416c97dbb725154930066d115b4447e17 (patch)
treec09aed0142158c6fda679bab87012144e5a60372 /security/selinux/ss/status.c
parent8b0c543e5cb1e47a54d3ea791b8a03b9c8a715db (diff)
selinux: fix up style problem on /selinux/status
This patch fixes up coding-style problem at this commit: 4f27a7d49789b04404eca26ccde5f527231d01d5 selinux: fast status update interface (/selinux/status) Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/ss/status.c')
-rw-r--r--security/selinux/ss/status.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/security/selinux/ss/status.c b/security/selinux/ss/status.c
index 5d9b225f856..d982365f9d1 100644
--- a/security/selinux/ss/status.c
+++ b/security/selinux/ss/status.c
@@ -35,7 +35,7 @@
* In most cases, application shall confirm the kernel status is not
* changed without any system call invocations.
*/
-static struct page *selinux_status_page = NULL;
+static struct page *selinux_status_page;
static DEFINE_MUTEX(selinux_status_lock);
/*
@@ -50,11 +50,10 @@ struct page *selinux_kernel_status_page(void)
struct page *result = NULL;
mutex_lock(&selinux_status_lock);
- if (!selinux_status_page)
- {
+ if (!selinux_status_page) {
selinux_status_page = alloc_page(GFP_KERNEL|__GFP_ZERO);
- if (selinux_status_page)
- {
+
+ if (selinux_status_page) {
status = page_address(selinux_status_page);
status->version = SELINUX_KERNEL_STATUS_VERSION;
@@ -86,8 +85,7 @@ void selinux_status_update_setenforce(int enforcing)
struct selinux_kernel_status *status;
mutex_lock(&selinux_status_lock);
- if (selinux_status_page)
- {
+ if (selinux_status_page) {
status = page_address(selinux_status_page);
status->sequence++;
@@ -112,8 +110,7 @@ void selinux_status_update_policyload(int seqno)
struct selinux_kernel_status *status;
mutex_lock(&selinux_status_lock);
- if (selinux_status_page)
- {
+ if (selinux_status_page) {
status = page_address(selinux_status_page);
status->sequence++;