btrfs-progs: cleanup unused assignment for chunk-recover
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 12 Jun 2014 02:25:01 +0000 (10:25 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:39:34 +0000 (14:39 +0200)
The 'num_unordered' will be recounted after 'goto out',
just remove it.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
chunk-recover.c

index dfa7ff6..9c44b49 100644 (file)
@@ -1888,7 +1888,6 @@ next_csum:
                fprintf(stderr, "Fetch csum failed\n");
                goto fail_out;
        } else if (ret == 1) {
                fprintf(stderr, "Fetch csum failed\n");
                goto fail_out;
        } else if (ret == 1) {
-               num_unordered = count_devext_records(&unordered);
                if (!(*flags & EQUAL_STRIPE))
                        *flags |= EQUAL_STRIPE;
                goto out;
                if (!(*flags & EQUAL_STRIPE))
                        *flags |= EQUAL_STRIPE;
                goto out;