Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp240617rwb; Thu, 11 Aug 2022 00:04:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR51YakovZJJUIRCX878c4HZOymINGTMd++dIQVM2X0sCMPOc+yx4FoPeNCMKZ7snUz18iHY X-Received: by 2002:a17:907:96a1:b0:730:e0bd:1420 with SMTP id hd33-20020a17090796a100b00730e0bd1420mr22061465ejc.83.1660201453487; Thu, 11 Aug 2022 00:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660201453; cv=none; d=google.com; s=arc-20160816; b=wC8vKdScGt2ZhqfA4tR2jLJX1TvyoZ9tFl562iOE6BbHtkRRtmOeCecxvwTHsIO1UL ZE14E+PYCP76BNO6f1K8FR43lR4047MIaJfVTzczqTSR8upb1UG1YbFrDzVAP/cO0Fba z7hirqPjpouQz2JTG1KbcaKHUR3BnAdLJiyaTGsWAJy5BiJQQM/ZRWEiJjQP+WJh6Tmy W+9c6H4JjT3uqUHFF6U+8rcq6D0Gh8Py1uaIpWMu4zZdDzkkoUYpYrGkoArtxGjiHvm7 pXUG4wZtp4bNReCwVOP+2lUYT5Loa4FXZ4Zj2OG/xFBnb25s1OR4PPCJzuIv6kLaFpcl 1qwg== 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=1oedinNT3GrFdC0AjoKrFwRPZIG3dlXds0+f/CvZjNg=; b=xzu/rQSV2b6ehsi/rHt76jRjPyIje3iPb6ZEP9DdZSqEag50sc7EwDaGgWv1tcD5vm /3FegJ/DJamzU0gKO9Xp9RWyPnxIHc1HJEfX9wE0J21xWWKau61Ig1XrNTxsmpj1FNPe FHJIVvaQ7Vm1rml3SrmuH53hkhfr/y7ii2PVopckMZH+eBKLnIHQrbYhHp4I1v3xya0a JMmShDNx6/LQPxUPqSl5JdiO019d7HE8LYpZ70mXzHu58hB+eN+sSZud3L4B4xzfi1gT UPVjy4jCymaEN7VPMHtuot4/X/b/F7nvO3LuQAPCq6Wx9Km6l2FLUTWnGTYExdl1pWeo mGjw== 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 h9-20020a05640250c900b0043d373fd120si12904312edb.47.2022.08.11.00.03.48; Thu, 11 Aug 2022 00:04:13 -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 S234055AbiHKGvN (ORCPT + 99 others); Thu, 11 Aug 2022 02:51:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233400AbiHKGvL (ORCPT ); Thu, 11 Aug 2022 02:51:11 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 043A515715 for ; Wed, 10 Aug 2022 23:51:08 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 253001E80D32; Thu, 11 Aug 2022 14:49:06 +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 8scMk5p_aKB5; Thu, 11 Aug 2022 14:49:03 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhoujie@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 542771E80CE3; Thu, 11 Aug 2022 14:49:03 +0800 (CST) From: Zhou jie To: agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com Cc: linux-kernel@vger.kernel.org, kernel@nfschina.com, Zhou jie Subject: [PATCH] md:Remove unnecessary void* type casting Date: Thu, 11 Aug 2022 14:51:02 +0800 Message-Id: <20220811065102.4697-1-zhoujie@nfschina.com> X-Mailer: git-send-email 2.18.2 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 remove unnecessary void* type casting Signed-off-by: Zhou jie --- drivers/md/dm-verity-fec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-verity-fec.c b/drivers/md/dm-verity-fec.c index cea2b3789736..3f19fd89cf98 100644 --- a/drivers/md/dm-verity-fec.c +++ b/drivers/md/dm-verity-fec.c @@ -567,14 +567,14 @@ void verity_fec_dtr(struct dm_verity *v) static void *fec_rs_alloc(gfp_t gfp_mask, void *pool_data) { - struct dm_verity *v = (struct dm_verity *)pool_data; + struct dm_verity *v = pool_data; return init_rs_gfp(8, 0x11d, 0, 1, v->fec->roots, gfp_mask); } static void fec_rs_free(void *element, void *pool_data) { - struct rs_control *rs = (struct rs_control *)element; + struct rs_control *rs = element; if (rs) free_rs(rs); -- 2.18.2