Patchwork [1/4] UBIFS: correction to Joels' patch

login
register
mail settings
Submitter Artem Bityutskiy
Date June 7, 2012, 9:06 a.m.
Message ID <1339059968-25753-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/163545/
State New
Headers show

Comments

Artem Bityutskiy - June 7, 2012, 9:06 a.m.
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

This is a nit-pick, and yes, I am paranoid, but in UBIFS we try to put
variables of the same type together when declaring them. Here is the correction
- please, take this into account in later patches.

Thanks!

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
 fs/ubifs/sb.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Patch

diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c
index c1665ca..d4328bd 100644
--- a/fs/ubifs/sb.c
+++ b/fs/ubifs/sb.c
@@ -81,8 +81,7 @@  static int create_default_filesystem(struct ubifs_info *c)
 	union ubifs_key key;
 	int err, tmp, jnl_lebs, log_lebs, max_buds, main_lebs, main_first;
 	int lpt_lebs, lpt_first, orph_lebs, big_lpt, ino_waste, sup_flags = 0;
-	int min_leb_cnt = UBIFS_MIN_LEB_CNT;
-	int ksa_lebs = 0, ksa_first;
+	int min_leb_cnt = UBIFS_MIN_LEB_CNT, ksa_lebs = 0, ksa_first;
 	long long tmp64, main_bytes;
 	__le64 tmp_le64;
 
@@ -370,9 +369,7 @@  static int create_default_filesystem(struct ubifs_info *c)
 static int validate_sb(struct ubifs_info *c, struct ubifs_sb_node *sup)
 {
 	long long max_bytes;
-	int err = 1, min_leb_cnt;
-	int max_ksa_leb_cnt;
-	int min_ksa_leb_cnt;
+	int err = 1, min_leb_cnt, max_ksa_leb_cnt, min_ksa_leb_cnt;
 
 	if (!c->key_hash) {
 		err = 2;