btrfs: remove err variable from do_relocation
authorNikolay Borisov <nborisov@suse.com>
Tue, 24 Nov 2020 15:49:32 +0000 (17:49 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:15 +0000 (15:54 +0100)
commit8df01fddb77998a46b1b59563e1c5d094dc2586a
tree6da2372fdd4dc0eac5c27d780aafea60a9a8e7e8
parentc6a592f2e2093e6a90d651b073746c7950d6420d
btrfs: remove err variable from do_relocation

It simply gets assigned to 'ret' in case of errors. The flow of the
while loop is not changed by this commit since the few call sites
that 'goto next' will simply break from the loop.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c