btrfs: cleanup __btrfs_open_devices() drop head pointer
authorAnand Jain <anand.jain@oracle.com>
Thu, 12 Apr 2018 02:29:26 +0000 (10:29 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:21 +0000 (18:07 +0200)
commitf117e290e8efb5f1b2e5d83e559b73f2f0c1c3aa
tree1bb2d27c41b195e81a72d29128096c156b9e8fe8
parentc4babc5e38e94e70058218ebfbf7846fd2f8a24d
btrfs: cleanup __btrfs_open_devices() drop head pointer

__btrfs_open_devices() declares struct list_head *head, however head is
used only once, instead use btrfs_fs_devices::devices directly.

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