]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd24941e4417e4a8e3c0b04ff1de1ce78eff0375
tree150bd9e86ea6d4445e621091ab733103ada656e4
parent5db5eafd01bdc7ea421cb5922c53e7f2c6db01e9
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