btrfs: remove err variable from btrfs_delete_subvolume
authorNikolay Borisov <nborisov@suse.com>
Tue, 24 Nov 2020 15:49:30 +0000 (17:49 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:15 +0000 (15:54 +0100)
commitee0d904fd9c5662c58a737c77384f8959fdc8d12
tree150bd9e86ea6d4445e621091ab733103ada656e4
parentc65ca98f9e687196a840bd8b71d28d32ffe91170
btrfs: remove err variable from btrfs_delete_subvolume

Use only a single 'ret' to control whether we should abort the
transaction or not. That's fine, because if we abort a transaction then
btrfs_end_transaction will return the same value as passed to
btrfs_abort_transaction. No semantic changes.

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/inode.c