mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: shijm <junming@nfschina.com>
To: axboe@kernel.dk
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
	Shi junming <junming@nfschina.com>
Subject: [PATCH] block: remove unnecessary (void *) conversions
Date: Fri, 12 Aug 2022 16:18:23 +0800	[thread overview]
Message-ID: <20220812081823.26716-1-junming@nfschina.com> (raw)

From: Shi junming <junming@nfschina.com>

void * is not necessary,remove unnecessary (void *) conversions.

Signed-off-by: Shi junming <junming@nfschina.com>
---
 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


             reply	other threads:[~2022-08-12  8:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12  8:18 shijm [this message]
2022-09-19  1:28 [PATCH] block: Remove unnecessary (void*) conversions Li zeming
2022-09-20 14:29 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220812081823.26716-1-junming@nfschina.com \
    --to=junming@nfschina.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®