]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove unnecessary tmp variable in btrfs_assign_next_active_device()
authorAnand Jain <anand.jain@oracle.com>
Fri, 4 Sep 2020 17:34:34 +0000 (01:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:22 +0000 (12:12 +0200)
commit935eefa009d5c548dd7a51650055eb6a31707646
tree4f08eed6c7ab9a7ccf73c97acb91ce1cf25cdf8e
parent119a833e4742fa2c2b1f3f1a052d5051a6f76aa4
btrfs: remove unnecessary tmp variable in btrfs_assign_next_active_device()

We can check the argument value directly, no need for the temporary
variable.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c