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)
commite493e8f9bcb5f6cf00f94d30eddc43c5be731ff4
tree4f08eed6c7ab9a7ccf73c97acb91ce1cf25cdf8e
parent1888709d71806c0bdf008ea471ce9569b8efa79b
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