]> git.dujemihanovic.xyz Git - linux.git/commit
btrfs: Don't assign retval of btrfs_try_tree_write_lock/btrfs_tree_read_lock_atomic
authorNikolay Borisov <nborisov@suse.com>
Wed, 4 Sep 2019 17:22:39 +0000 (20:22 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:20 +0000 (14:59 +0200)
commit65e99c43e9c2fee1a1f02c100154730fbeae9717
tree80002cad5d69bd4f14120fc10bcdf960f4a8992e
parentaf024ed2e0e56f27279cdba4d27a23dbb7677e40
btrfs: Don't assign retval of btrfs_try_tree_write_lock/btrfs_tree_read_lock_atomic

Those function are simple boolean predicates there is no need to assign
their return values to interim variables. Use them directly as
predicates. No functional 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/ctree.c