Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1478402rwb; Fri, 12 Aug 2022 01:20:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5P9wsy5Tnb58m12dcVSMvRCqT9nCUF45akJX/bo7bsmlN0xx1oJmxA+nP7W677b8fDt1ei X-Received: by 2002:aa7:cb83:0:b0:443:3f15:84fe with SMTP id r3-20020aa7cb83000000b004433f1584femr1147039edt.17.1660292451705; Fri, 12 Aug 2022 01:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660292451; cv=none; d=google.com; s=arc-20160816; b=waF9HfDejUQaGw7vJBjUFFwoTqAwiAcThwmnV8ADliin8vn+rzS4qQn5gDWED1sljV Zt7NJY9+S8jlAXIrxb113NsoK2scp0YPLJJAOpxpuZIW7slgFvRUzc1VzCJFWi9u6ARQ 105pXQsXqjp394UMQO62V3FnfGa3fyWN5fXLYHA33+umBV0joq4gGt39+9LItw+sLrSy uZvFEXLBYrHC95vFf6W6/LvYWCvDTQC2l9BRmmTzx61iIBT5MgXo5LrSA2WyTx62xGlS +ExXs9bcuPHKwaEenM9xD2DCB/bplxHZ5ttKXbSR7Jvz++P5tig+2kO0St3Jb6QiBdK7 FOJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=wecxInB9Egnw6JmaQQkgukHa7m0CgC+1VwwUzfpWu6o=; b=l85D6h5VN7pIiHqUTLrlNIuPa8f9EUM/KMpVNe5DdNqAwpTTTgZ0WyhMHk1FFG1Bk9 3ugzzjoWqaz6VcU9yhp75Ftt5uiti99Q6Qw/PrBKUuC7+SqCEBCmOKKNcCM0C1KE3MN4 N4Hka+o9QChWoPwIee25QPwkPscMwNVw68FfMLod1OFLP8eHJGZrF9Gl+Xm9TkJ5SFBj EXojcVK779l3Lvz8WvvMe8371kSXOEHSOy53yl8hwZ7hF1mJa8PTRJFbkykk+XQUn70K YqFl1iD5F/rfcVnBvh1d/OPTTmmtmkdsLs2gP28raeTWHqDPOOTdqN7gxDmv1i6VmvQP LYug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc20-20020a1709078a1400b0073121897f72si1212996ejc.937.2022.08.12.01.20.25; Fri, 12 Aug 2022 01:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237081AbiHLISf (ORCPT + 99 others); Fri, 12 Aug 2022 04:18:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbiHLISd (ORCPT ); Fri, 12 Aug 2022 04:18:33 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B5B6EA5C47; Fri, 12 Aug 2022 01:18:29 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 20EFC1E80D0E; Fri, 12 Aug 2022 16:16:18 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9IaXjR9GodCK; Fri, 12 Aug 2022 16:16:15 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: junming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 6862D1E80CB7; Fri, 12 Aug 2022 16:16:15 +0800 (CST) From: shijm To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Shi junming Subject: [PATCH] block: remove unnecessary (void *) conversions Date: Fri, 12 Aug 2022 16:18:23 +0800 Message-Id: <20220812081823.26716-1-junming@nfschina.com> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shi junming void * is not necessary,remove unnecessary (void *) conversions. Signed-off-by: Shi junming --- 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