From patchwork Mon Nov 7 02:04:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 16217 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1781694wru; Sun, 6 Nov 2022 18:08:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM5C6Bca+b8eOj8LMlK71tOK/xD6vee4QcavgAqeyhcLbAegy39FITgxCveHIZ1euTFXq+Gl X-Received: by 2002:a17:907:3ea2:b0:7ad:86f9:7b15 with SMTP id hs34-20020a1709073ea200b007ad86f97b15mr45409990ejc.272.1667786886246; Sun, 06 Nov 2022 18:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667786886; cv=none; d=google.com; s=arc-20160816; b=wAA5J3iiwM1c1Kto1MNKVbILUJraytuMkkbvUQe7dgNg20j4GcvNIzA0alKgHQrn49 zcEWgLzUoidf/tSHj+AQ7wnfzsC8oSET5LOs+SAXvBIyCgHxneGIcj5bN2YKv7ItauCQ CizTHY39ksV+bxoJr/FNO+y+fEVYJO4gx03RZ/5iybGqx2fvS9XvKe5eL0oPqM120D7R TDVZeCfWNzdoqxK3sHcrcukcAzk6PNdg2dh7GxMmP49Tgb5gq1SyDDV35YU3MBye8nfl Cv+8q9YZknPwPsdKAb0RHM5s8c1/oHCiCsRqd39Luw3FC+9PKmJvi+aaj7yIOyAktSUg RVWQ== 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=Wi8V1yFiWUeLX75x/BagX/FwkpPuZX9tumVLDWypZ7A=; b=Gx9aHOdIRGGBS9Recwy+q5WO29ofOaxg65LLEaNW/xmQt+aeDCKVpJTof4HC2Wvunx VeJh3atcz0HUG8RFB+C02rOVZDp24tgsdZKgidIKpmb/Y2kYiPuyGpHgEUVAb/Xjf3Zi 8StvCmrNI5yEvuo6qiz/tct8ZkwAt9NBscdJIocDv9SJBqEWlvgFusloMai88rEwVp5U VsjSl6Fusb72Y0+qyQx3KvOWDbIjgiLyf20MG97ltcVMoX7c5buQDKNr8nsM29T5Vt1K 2L6GL8cs0OSFK8nJcbL3wV77+OLVptb8X56kMP3ilcWsbR1YHXSW2pL+2IBzqZiHZueD +wMg== 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 i15-20020a1709064fcf00b0076f16ec62d6si7511936ejw.959.2022.11.06.18.07.40; Sun, 06 Nov 2022 18:08:06 -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 S230263AbiKGCEN (ORCPT + 99 others); Sun, 6 Nov 2022 21:04:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbiKGCEL (ORCPT ); Sun, 6 Nov 2022 21:04:11 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 911A0A455; Sun, 6 Nov 2022 18:04:10 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id E8CC71E80CE5; Mon, 7 Nov 2022 10:01:49 +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 Xn8leCsuRSGg; Mon, 7 Nov 2022 10:01:47 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id AE72D1E80D9D; Mon, 7 Nov 2022 10:01:46 +0800 (CST) From: Li zeming To: code@tyhicks.com, sforshee@digitalocean.com, brauner@kernel.org, amir73il@gmail.com Cc: ecryptfs@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] ecryptfs: main: Remove unnecessary (void*) conversions Date: Mon, 7 Nov 2022 10:04:04 +0800 Message-Id: <20221107020404.3380-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?1748801302047036002?= X-GMAIL-MSGID: =?utf-8?q?1748801302047036002?= The ei pointer does not need to cast the type. Signed-off-by: Li zeming --- fs/ecryptfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index 2dd23a82e0de..3e499207d4c6 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c @@ -649,7 +649,7 @@ MODULE_ALIAS_FS("ecryptfs"); static void inode_info_init_once(void *vptr) { - struct ecryptfs_inode_info *ei = (struct ecryptfs_inode_info *)vptr; + struct ecryptfs_inode_info *ei = vptr; inode_init_once(&ei->vfs_inode); }