scrub: fix uninit return variable in scrub_progress_cycle
authorChris Mason <clm@fb.com>
Wed, 28 May 2014 21:01:39 +0000 (17:01 -0400)
committerChris Mason <clm@fb.com>
Wed, 28 May 2014 21:03:05 +0000 (17:03 -0400)
Signed-off-by: Chris Mason <clm@fb.com>
cmds-scrub.c

index 4338a0b..3510f57 100644 (file)
@@ -865,7 +865,7 @@ static void *progress_one_dev(void *ctx)
 /* nb: returns a negative errno via ERR_PTR */
 static void *scrub_progress_cycle(void *ctx)
 {
-       int ret;
+       int ret = 0;
        int  perr = 0;  /* positive / pthread error returns */
        int old;
        int i;