]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd6ab3c6385e4fb7532547857693c4c539ff90b5
tree6da2372fdd4dc0eac5c27d780aafea60a9a8e7e8
parenta8d07d581f642315d9dbf888cd84d05e8d9a73d7
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