2009-07-06 08:18:53

by Kazuya Mio

[permalink] [raw]
Subject: [PATCH 1/3] e2fsck: Remove unnecessary continue statement

Remove the continue statement because it calls at the end of the loop.

Regards,
Kazuya Mio

Signed-off-by: Kazuya Mio <[email protected]>
---
pass2.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c
index bb3813c..889e39d 100644
--- a/e2fsck/pass2.c
+++ b/e2fsck/pass2.c
@@ -243,8 +243,6 @@ void e2fsck_pass2(e2fsck_t ctx)
fix_problem(ctx, code, &pctx);
bad_dir++;
}
- if (code == 0)
- continue;
}
if (bad_dir && fix_problem(ctx, PR_2_HTREE_CLEAR, &pctx)) {
clear_htree(ctx, dx_dir->ino);


2009-07-07 03:24:38

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH 1/3] e2fsck: Remove unnecessary continue statement

On Mon, Jul 06, 2009 at 05:14:13PM +0900, Kazuya Mio wrote:
> Remove the continue statement because it calls at the end of the loop.

Thanks, applied.

- Ted