btrfs: cleanup temporary variables when finding rotational device status
authorAnand Jain <anand.jain@oracle.com>
Thu, 13 Jan 2022 04:44:10 +0000 (12:44 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:19:48 +0000 (16:19 +0100)
commit833e8d2bf8dccf0f7afdbb634897afe5570bb728
tree99a8d08a68cb262ae28139854542dd14c2dca291
parentfc3fc16e8c5609ce8c5516ed84dfd5a9c9f50e66
btrfs: cleanup temporary variables when finding rotational device status

The pointer to struct request_queue is used only to get device type
rotating or the non-rotating. So use it directly.

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