nbd: Remove superfluous casts
authorBart Van Assche <bvanassche@acm.org>
Fri, 10 May 2024 20:23:10 +0000 (13:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 14 May 2024 13:22:35 +0000 (07:22 -0600)
commit40639e9a0f6e49edd4ef520e6c0e070e1a04a330
tree7867db877167e1ac0dbe2fed5aefbafb4c6e49aa
parent08190cc4d8a62f2a07b4158751afd3a01638c4c5
nbd: Remove superfluous casts

In Linux kernel code it is preferred not to use a cast when converting a
void pointer to another pointer type.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Josef Bacik <jbacik@fb.com>
Cc: Yu Kuai <yukuai3@huawei.com>
Cc: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240510202313.25209-3-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c