From patchwork Mon Nov 7 01:56:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 16216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1780323wru; Sun, 6 Nov 2022 18:04:41 -0800 (PST) X-Google-Smtp-Source: AMsMyM7TSHo3PtxABszvmZymHrDE84Qzo2THD5U3iPO58dJOr67jOc2prsOeLEVdfHpUStUcDNF1 X-Received: by 2002:a17:906:d8c9:b0:79d:f5f2:6f55 with SMTP id re9-20020a170906d8c900b0079df5f26f55mr642851ejb.531.1667786680815; Sun, 06 Nov 2022 18:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667786680; cv=none; d=google.com; s=arc-20160816; b=fiuQNifgws+K5Drkd6NehTCVvVNqPV6AtfAvq2mglLJSNs1WGCw2+a5HIOOkkLUoLj WZNpJovsZRPL4o1u9bebC4yzKDxl0OPur0za3/RTLS4yLQsDKjAPXLQssY8Co1cInnFN LI9ZVaKrNTPgy3jXpBRguJ30dx1y8zuVOPSUUjyV60PX6GvlvG+UvMlrTSfH48knOVRP /cXs3ZibXrNnAguGTauZHHVt10kYS6vq6lbHzTkwOaIw1k9HJDFBjGlRTaCPUWx5eB+i nqBcMdPfU7rH/jgDqKajLToYx5hNt8rtAuMwx/1xrLp7rcSPh+ROkooyg9kyPX3gi+D8 cUtA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k16-20020a1709062a5000b007adfe2889efsi5319687eje.607.2022.11.06.18.04.15; Sun, 06 Nov 2022 18:04:40 -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 + 99 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748801086438367546?= X-GMAIL-MSGID: =?utf-8?q?1748801086438367546?= The ei pointer does not need to cast the type. Signed-off-by: Li zeming Reviewed-by: Muchun Song --- 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); }