Commit f441108f authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

block: Remove a superfluous cast from blkdev_report_zones()

No cast is necessary when assigning a non-void pointer to a void
pointer.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Cc: Matias Bjorling <mb@lightnvm.io>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1e4b044d
...@@ -200,7 +200,7 @@ int blkdev_report_zones(struct block_device *bdev, ...@@ -200,7 +200,7 @@ int blkdev_report_zones(struct block_device *bdev,
/* Get header in the first page */ /* Get header in the first page */
ofst = 0; ofst = 0;
if (!nr_rep) { if (!nr_rep) {
hdr = (struct blk_zone_report_hdr *) addr; hdr = addr;
nr_rep = hdr->nr_zones; nr_rep = hdr->nr_zones;
ofst = sizeof(struct blk_zone_report_hdr); ofst = sizeof(struct blk_zone_report_hdr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment