Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1049590rwb; Sun, 6 Nov 2022 18:33:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4He7aNL/l0R+9hrx1ftT4gzRvM4GnpN+YF+VhxmLDk9RX7i3WxOnBGFI4wJl+csh4SqOU1 X-Received: by 2002:a17:902:f687:b0:188:6cce:671b with SMTP id l7-20020a170902f68700b001886cce671bmr13236520plg.71.1667788380881; Sun, 06 Nov 2022 18:33:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667788380; cv=none; d=google.com; s=arc-20160816; b=Ptb3JlYyI2iBGDkf2jdiNq7c08mmr1iRjFGxv4n2PBylJ4o1qB6yWSg2oHicYiNEkA 3c3b9zPHqafvbC9xNvAP/66I0mRkxLakXbru3nMO753jxYRqjxq986sIFCgYFtvP7u9Q RALz6vnIVAX2zc+X72/uJdhGeRv6Iyyk90nlVWE7fu3TYEs6ZgZJK1lP8EqZOIST477B iwrSt3zkK9vm3ikhw/I/6PHuYUZOv12xvKBiGwMO4SsUyoihe7Quy2yMbVYJZ2lXDG5X VkwfUxIbNCtrXMki4HBBnSUepUyoI+6/NdMtwNedKYrkbcDnzT3XcOp/ZmFHso8+c7OV hF0w== 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=5pJ5yn5W7JounU5TmIgqul1039oF8sieGE3wBQvncKA=; b=t1hhhSNdjNrfdqsabiUIPMrcxNO+mdFUuNzULzLqwA7DtIzbK/i0kEdEVpearfNbRn 80yP8iVoATS/x/6Ugt+490Nq9EkFXOFW9fhCMEqiGQ6SOo2PK8rOFeEw+JuZkR98D4YZ nkXJTwOPEv2ZHGdiRcfq5y2vKGolb3YGI5FpzJILsfJdOewtT06BAr4OKjiRnsRxRwLT 3MG3fxGvlU8u+zgJw893ta1UxPZpfnu2JVJROUxjjNKigCjZbFZ9oV9/1g4DEuS1UQWy DQ9If7s52+4EMiGXsgEkf09+PG8isEtkLc5bB5IniCeJgBbaX1+sbY1e9/6HGOhb8A1A Pe8A== 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 q20-20020aa78434000000b0052b75c32fd2si7746038pfn.48.2022.11.06.18.32.42; Sun, 06 Nov 2022 18:32:59 -0800 (PST) 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 S230332AbiKGB5H (ORCPT + 96 others); Sun, 6 Nov 2022 20:57:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbiKGB5G (ORCPT ); Sun, 6 Nov 2022 20:57:06 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7228363CC for ; Sun, 6 Nov 2022 17:57:05 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id AF2441E80D89; Mon, 7 Nov 2022 09:54:44 +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 s7qn6hQCpt30; Mon, 7 Nov 2022 09:54:41 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 81A841E80D87; Mon, 7 Nov 2022 09:54:41 +0800 (CST) From: Li zeming To: mike.kravetz@oracle.com, songmuchun@bytedance.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] hugetlbfs: inode: Remove unnecessary (void*) conversions Date: Mon, 7 Nov 2022 09:56:59 +0800 Message-Id: <20221107015659.3221-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 The ei pointer does not need to cast the type. Signed-off-by: Li zeming --- fs/hugetlbfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index f7a5b5124d8a..0728531992a2 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -1160,7 +1160,7 @@ static const struct address_space_operations hugetlbfs_aops = { static void init_once(void *foo) { - struct hugetlbfs_inode_info *ei = (struct hugetlbfs_inode_info *)foo; + struct hugetlbfs_inode_info *ei = foo; inode_init_once(&ei->vfs_inode); } -- 2.18.2