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, 14 Feb 2022 15:35:59 +0000 (16:35 +0100)
commit7048d95bdef2a16c42090cb043800717f6c258ab
tree149570383c1d5b6bde33b50b3fdff913008b02a4
parent150f28898b96b1f3e03356c2f221ead7722cc5ef
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