Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1193119 > unrolled thread

[PATCH 5/5] Remove unnecessary braces {} for single statement blocks

Started by"Incarnation P. Lee" <incarnation.p.lee@outlook.com>
First post2015-07-27 16:00 +0200
Last post2015-07-27 16:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 5/5] Remove unnecessary braces {} for single statement blocks "Incarnation P. Lee" <incarnation.p.lee@outlook.com> - 2015-07-27 16:00 +0200

#1193119 — [PATCH 5/5] Remove unnecessary braces {} for single statement blocks

From"Incarnation P. Lee" <incarnation.p.lee@outlook.com>
Date2015-07-27 16:00 +0200
Subject[PATCH 5/5] Remove unnecessary braces {} for single statement blocks
Message-ID<pQR6G-3G8-15@gated-at.bofh.it>
From: "Pan Li" <incarnation.p.lee@outlook.com>

Remove unnecessary braces {} for single line statement blocks.

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 1f6ca7c..0f34171 100644
--- a/drivers/staging/lustre/lustre/obdclass/cl_page.c
+++ b/drivers/staging/lustre/lustre/obdclass/cl_page.c
@@ -376,9 +376,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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web