Patchwork [2/4] UBIFS: another correction to joel's patch

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

Comments

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

Fix the following GCC warning identified by aiaiai:
+fs/ubifs/sb.c: In function 'create_default_filesystem':
+fs/ubifs/sb.c:85:20: warning: variable 'ksa_first' set but not used [-Wunused-but-set-variable]

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

Patch

diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c
index d4328bd..7b6adc0 100644
--- a/fs/ubifs/sb.c
+++ b/fs/ubifs/sb.c
@@ -81,7 +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, ksa_lebs = 0, ksa_first;
+	int min_leb_cnt = UBIFS_MIN_LEB_CNT, ksa_lebs = 0;
 	long long tmp64, main_bytes;
 	__le64 tmp_le64;
 
@@ -168,7 +168,6 @@  static int create_default_filesystem(struct ubifs_info *c)
 		lpt_first + lpt_lebs - 1);
 
 	main_first = c->leb_cnt - main_lebs;
-	ksa_first = c->leb_cnt - main_lebs - ksa_lebs;
 
 	/* Create default superblock */
 	tmp = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size);