]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/memstick/core/mspro_block.c
block: Consolidate phys_segment and hw_segment limits
[mirror_ubuntu-bionic-kernel.git] / drivers / memstick / core / mspro_block.c
index 44d4178c4c1577a7be0084ceb8765fcea1c7d6d0..972b87069d55aad0e6d27eba6b7fbbba55064598 100644 (file)
@@ -1227,8 +1227,7 @@ static int mspro_block_init_disk(struct memstick_dev *card)
 
        blk_queue_bounce_limit(msb->queue, limit);
        blk_queue_max_hw_sectors(msb->queue, MSPRO_BLOCK_MAX_PAGES);
-       blk_queue_max_phys_segments(msb->queue, MSPRO_BLOCK_MAX_SEGS);
-       blk_queue_max_hw_segments(msb->queue, MSPRO_BLOCK_MAX_SEGS);
+       blk_queue_max_segments(msb->queue, MSPRO_BLOCK_MAX_SEGS);
        blk_queue_max_segment_size(msb->queue,
                                   MSPRO_BLOCK_MAX_PAGES * msb->page_size);