lkml.org 
[lkml]   [2015]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/5] staging: lustre: Remove unnecessary braces {}
Date
From: "Pan Li" <incarnation.p.lee@outlook.com>

Remove unnecessary braces {} in single line statement code block.
Signed-off-by: Pan Li <incarnation.p.lee@outlook.com>
---
drivers/staging/lustre/lustre/obdclass/cl_page.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/obdclass/cl_page.c b/drivers/staging/lustre/lustre/obdclass/cl_page.c
index 739814e..c386c43 100644
--- a/drivers/staging/lustre/lustre/obdclass/cl_page.c
+++ b/drivers/staging/lustre/lustre/obdclass/cl_page.c
@@ -374,9 +374,8 @@ static struct cl_page *cl_page_find0(const struct lu_env *env,
idx) == page));
}

- if (page != NULL) {
+ if (page != NULL)
return page;
- }

/* allocate and initialize cl_page */
page = cl_page_alloc(env, o, idx, vmpage, type);
--
1.9.0


\
 
 \ /
  Last update: 2015-07-25 12:01    [W:0.031 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site