[RFC PATCH 11/21] floppy: use lib tagset init helper

Chaitanya Kulkarni
2022-10-05T16:08:28Z

drivers/block/floppy.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index ccad3d7b3ddd..3a3260e6ac5c 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -4582,12 +4582,9 @@ static int __init do_floppy_init(void)

for (drive = 0; drive < N_DRIVE; drive++) {
memset(&tag_sets[drive], 0, sizeof(tag_sets[drive]));
- tag_sets[drive].ops = &floppy_mq_ops;
- tag_sets[drive].nr_hw_queues = 1;
+ blk_mq_init_tag_set(&tag_sets[drive], &floppy_mq_ops, 1, 2,
+ 0, NUMA_NO_NODE, 0, BLK_MQ_F_SHOULD_MERGE, NULL);
tag_sets[drive].nr_maps = 1;
- tag_sets[drive].queue_depth = 2;
- tag_sets[drive].numa_node = NUMA_NO_NODE;
- tag_sets[drive].flags = BLK_MQ_F_SHOULD_MERGE;
err = blk_mq_alloc_tag_set(&tag_sets[drive]);
if (err)
goto out_put_disk;
--
2.29.0