Skip to content

Commit f441108

Browse files
KAGA-KOKOaxboe
authored andcommitted
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: 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>
1 parent 1e4b044 commit f441108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-zoned.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ int blkdev_report_zones(struct block_device *bdev,
200200
/* Get header in the first page */
201201
ofst = 0;
202202
if (!nr_rep) {
203-
hdr = (struct blk_zone_report_hdr *) addr;
203+
hdr = addr;
204204
nr_rep = hdr->nr_zones;
205205
ofst = sizeof(struct blk_zone_report_hdr);
206206
}

0 commit comments

Comments
 (0)