btrfs: remove tmp variable for list traversal in btrfs_init_dev_replace_tgtdev
authorAnand Jain <anand.jain@oracle.com>
Fri, 4 Sep 2020 17:34:32 +0000 (01:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:22 +0000 (12:12 +0200)
commit1888709d71806c0bdf008ea471ce9569b8efa79b
tree964c07b73e60f371be9a5e1c1cb25eee8b317fe9
parente17125b52b7ec1075fae408e1a1da8005116e34a
btrfs: remove tmp variable for list traversal in btrfs_init_dev_replace_tgtdev

In the function btrfs_init_dev_replace_tgtdev(), the local variable
devices is used only once, we can remove it.

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/dev-replace.c