block: Remove a superfluous cast from blkdev_report_zones()
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 15 Jun 2018 21:55:17 +0000 (14:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:52 +0000 (09:07 -0600)
No cast is necessary when assigning a non-void pointer to a void
pointer.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Matias Bjorling <mb@lightnvm.io>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c

index 51000914e23f966f7a9e324cfcf301c27f0a105c..c461cf63f1f40d4e2d3c2c80727411de66f8af06 100644 (file)
@@ -200,7 +200,7 @@ int blkdev_report_zones(struct block_device *bdev,
                /* Get header in the first page */
                ofst = 0;
                if (!nr_rep) {
-                       hdr = (struct blk_zone_report_hdr *) addr;
+                       hdr = addr;
                        nr_rep = hdr->nr_zones;
                        ofst = sizeof(struct blk_zone_report_hdr);
                }