]> 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)
commit5b218efb77304548a0e4260d2c73020b63ab3341
tree4f08eed6c7ab9a7ccf73c97acb91ce1cf25cdf8e
parentabca186a1dc60fbf0ff769d60187a89ae287ced8
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