loop: remove extra variable in lo_fallocate()
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 15 Feb 2022 21:33:08 +0000 (13:33 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Feb 2022 21:42:01 +0000 (14:42 -0700)
commitd55a2148eaa6d87c488e14572160c4a49ccd42f9
tree0c20ae130a02eb594702f28ef7693d08f2b9ef3f
parentd6fcd8b8eadc20f1425630e5aed0d98d41d172d6
loop: remove extra variable in lo_fallocate()

The local variable q is used to pass it to the blk_queue_discard(). We
can get away with using lo->lo_queue instead of storing in a local
variable which is not used anywhere else.

No functional change in this patch.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Link: https://lore.kernel.org/r/20220215213310.7264-3-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c