summaryrefslogtreecommitdiff
path: root/fs/btrfs/raid56.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-07-15 14:02:17 +0300
committerDavid Sterba <dsterba@suse.com>2020-07-27 13:55:44 +0300
commit813f8a0e268bbc9bee3667f68ab9a3d8ea9df3a1 (patch)
tree88fd6dd1cc36c80fd79a356ef2822023be96ae6d /fs/btrfs/raid56.c
parentf37c563bab4297024c300b05c8f48430e323809d (diff)
downloadlinux-813f8a0e268bbc9bee3667f68ab9a3d8ea9df3a1.tar.xz
btrfs: raid56: remove out label in __raid56_parity_recover
There's no cleanup that occurs so we can simply return 0 directly. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.c')
-rw-r--r--fs/btrfs/raid56.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index 61ff77392357..255490f42b5d 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -2083,7 +2083,7 @@ static int __raid56_parity_recover(struct btrfs_raid_bio *rbio)
*/
if (atomic_read(&rbio->error) <= rbio->bbio->max_errors) {
__raid_recover_end_io(rbio);
- goto out;
+ return 0;
} else {
goto cleanup;
}
@@ -2103,7 +2103,7 @@ static int __raid56_parity_recover(struct btrfs_raid_bio *rbio)
submit_bio(bio);
}
-out:
+
return 0;
cleanup: