From patchwork Thu Jun 7 09:06:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/4] UBIFS: another correction to joel's patch Date: Wed, 06 Jun 2012 23:06:06 -0000 From: Artem Bityutskiy X-Patchwork-Id: 163548 Message-Id: <1339059968-25753-2-git-send-email-dedekind1@gmail.com> To: Joel Reardon Cc: MTD Maling List From: Artem Bityutskiy 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 --- 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);