Skip to content

Commit

Permalink
[JFFS2] Fix sparse warning in nodemgmt.c
Browse files Browse the repository at this point in the history
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@infradead.org>
  • Loading branch information
David Woodhouse committed Apr 22, 2008
1 parent f876a59 commit 8ca646a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/jffs2/nodemgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ca646a

Please sign in to comment.