[JFFS2] Fix sparse warning in nodemgmt.c
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Apr 22 07:59:02 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8ca646abb4503f39a7d235b89b9f8015e3ab4631
Commit: 8ca646abb4503f39a7d235b89b9f8015e3ab4631
Parent: f876a59dae09a353444913bdf73b125bc124a848
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Tue Apr 22 11:25:47 2008 +0100
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue Apr 22 12:35:44 2008 +0100
[JFFS2] Fix sparse warning in nodemgmt.c
fs/jffs2/nodemgmt.c:60:8: warning: symbol 'ret' shadows an earlier one
fs/jffs2/nodemgmt.c:45:6: originally declared here
(reported by Harvey Harrison)
Just remove the offending declaration of 'int ret' and use the earlier one.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
fs/jffs2/nodemgmt.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index a0313fa..a3e67a4 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -57,7 +57,6 @@ int jffs2_reserve_space(struct jffs2_sb_info *c, uint32_t minsize,
/* this needs a little more thought (true <tglx> :)) */
while(ret == -EAGAIN) {
while(c->nr_free_blocks + c->nr_erasing_blocks < blocksneeded) {
- int ret;
uint32_t dirty, avail;
/* calculate real dirty size
More information about the linux-mtd-cvs
mailing list