[PATCH] block: remove unnecessary (void *) conversions
From: shijm
Date: Fri Aug 12 2022 - 04:18:38 EST
From: Shi junming <junming@xxxxxxxxxxxx>
void * is not necessary,remove unnecessary (void *) conversions.
Signed-off-by: Shi junming <junming@xxxxxxxxxxxx>
---
block/blk-crypto-fallback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-crypto-fallback.c b/block/blk-crypto-fallback.c
index 7c854584b52b..586cce5b3cc9 100644
--- a/block/blk-crypto-fallback.c
+++ b/block/blk-crypto-fallback.c
@@ -516,7 +516,7 @@ bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr)
f_ctx->crypt_iter = bio->bi_iter;
f_ctx->bi_private_orig = bio->bi_private;
f_ctx->bi_end_io_orig = bio->bi_end_io;
- bio->bi_private = (void *)f_ctx;
+ bio->bi_private = f_ctx;
bio->bi_end_io = blk_crypto_fallback_decrypt_endio;
bio_crypt_free_ctx(bio);
--
2.18.2