Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp244736rwb; Thu, 11 Aug 2022 00:09:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6gO8eFHrW3oPl20RcuhTq8fZW7/Nt2TyjljB7ka03HovJ/Y8plVuvsMdaOx2JUFgwj9rBQ X-Received: by 2002:a17:907:7e8a:b0:732:ff29:d1d6 with SMTP id qb10-20020a1709077e8a00b00732ff29d1d6mr6658460ejc.175.1660201779781; Thu, 11 Aug 2022 00:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660201779; cv=none; d=google.com; s=arc-20160816; b=nutH+eelheq8KrkJbWe8v9O4hLbvsWlkgnuEwKnKEibhtl4hysluG704ivM9/g4nmp aOAM3LnNHYhaaPGWMLkv6mIhhteU1P5ZeBDResqF/bOZjtpzTp7TftM+1gsoPtaz3pd8 pZR85ahit6rcbojAK6PSXCchYMAvsKOF9QD+F9EJ2yB5R+s5iKaoT7vxndXDXH7kfInr ACRmV6no2AUxLEcgVjnyOYM9fb40bLzJK/PeASRld24npjvIhOyuxfPXnA70FuSN2Dil jupPQq2W21Abhyx4UulSU7JOeIY41Ft4TjGULRBKAEovLCIVQtKpsSx6jIgqI2CRigxn 8Y5w== 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=bmuuY7/w5sKM8KLOlmekFuxjPJ2gqcI1hSQJ2pkWsNI=; b=mSIiLDbCZVDuySUp+cC6d6BbHVWZKPC7e7R1U/gCJjLxozBdY+HxrMcCiSGTuUp3fN sj70FiRXtLfvzLUEaN//6b2mrn0vmkusAp+Ov881VXpo2fA23MMVpqu/sFrsLcLLCjkJ lXyFHzMMtB0B8sjUf4E2x5Gr+kny2alf2D0vswwogv5DOR9xuns1nkI7U8YXDfxhCKGp 5TEmr0gx1SA2ECC/llSZzgjOGYW5YhbtJ6Lo4gfYjW8GrU6dbf4P2rN3GDtVRd2JcL75 1T+PT6f21/+H3GHBf5sjVUfM8ayDmGd9QCQMufCMFVqxRBA7hSW48HwhvBClh75CgGEh +mMw== 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 a6-20020a1709063e8600b0072f1f41bf94si5759739ejj.244.2022.08.11.00.09.14; Thu, 11 Aug 2022 00:09:39 -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 S234224AbiHKG5q (ORCPT + 99 others); Thu, 11 Aug 2022 02:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234002AbiHKG5p (ORCPT ); Thu, 11 Aug 2022 02:57:45 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FE968B9A5 for ; Wed, 10 Aug 2022 23:57:44 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 51CBB1E80CE3; Thu, 11 Aug 2022 14:55:42 +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 HguBMh2ZK_8d; Thu, 11 Aug 2022 14:55:39 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhoujie@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 46E801E80D32; Thu, 11 Aug 2022 14:55:39 +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] remove unnecessary void* type casting Date: Thu, 11 Aug 2022 14:57:38 +0800 Message-Id: <20220811065738.5120-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-linear.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 76b486e4d2be..5637c480216a 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -71,7 +71,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) static void linear_dtr(struct dm_target *ti) { - struct linear_c *lc = (struct linear_c *) ti->private; + struct linear_c *lc = ti->private; dm_put_device(ti, lc->dev); kfree(lc); @@ -119,7 +119,7 @@ static void linear_status(struct dm_target *ti, status_type_t type, case STATUSTYPE_IMA: DMEMIT_TARGET_NAME_VERSION(ti->type); DMEMIT(",device_name=%s,start=%llu;", lc->dev->name, - (unsigned long long)lc->start); + lc->start); break; } } -- 2.18.2