scsi: simplify scsi_bios_ptable
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:15 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:07 +0000 (07:57 -0600)
commite63105df8fa1c87bdec4fb82ca7b121f139da221
treec8e137cfdd577261d702117f32a6e613998b08b0
parentf17c21c1ecb80e957bafa07d6454836854be7cf2
scsi: simplify scsi_bios_ptable

Use read_mapping_page and kmemdup instead of the odd read_dev_sector and
put_dev_sector helpers from the partitioning code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsicam.c