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

Artem Bityutskiy dedekind1 at gmail.com
Thu Jun 7 05:06:06 EDT 2012


From: Artem Bityutskiy <artem.bityutskiy at 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 at linux.intel.com>
---
 fs/ubifs/sb.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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);
-- 
1.7.10




More information about the linux-mtd mailing list