btrfs: raid56: Remove out label in __raid56_parity_recover
PATCH RESEND 1/1 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 <[email protected]>
--- fs/btrfs/raid56.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/raid56.c +2 -2
@@ -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:
--
2.17.1
Quoted 3 lines · Nikolay Borisov
There's no cleanup that occurs so we can simply return 0 directly.
Signed-off-by Nikolay Borisov <[email protected]>
Added to misc-next, thanks.
fs/btrfs/raid56.c static int __raid56_parity_recover(struct btrfs_raid_bio *rbio) · line 2086
Quoted 6 lines
fs/btrfs/raid56.c +1
-1@@ -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 ;
The rest of the function can be seen from that point so readability is not hurt.