Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1039892rwb; Sun, 6 Nov 2022 18:20:37 -0800 (PST) X-Google-Smtp-Source: AMsMyM47qXq4EdFZ85DHlsHn6EUDVHonJTjtQ4AGl0DPtGdhLr9N5LeoZEQL/95xfouVOEy96k+7 X-Received: by 2002:a05:6402:1004:b0:464:778:c516 with SMTP id c4-20020a056402100400b004640778c516mr26124863edu.348.1667787637502; Sun, 06 Nov 2022 18:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667787637; cv=none; d=google.com; s=arc-20160816; b=ts6GXgWIDySGjzHKJ91aUKGcHcVsTt0rjobDLPPfuMhOv5T19s/xtxAqAEINO7hFNi igwTxZXo2ySev6Wh9o61vTCrWalrKfh3R/BpCM3QkK4+dv2IEoEKK3oxzrd0SuqFdqQd MdiUuB5D24oTz51k7jd+696uUWBx8a4HzjrAkz9PLYyn6i0zYYJXOAg9YPTzqvBwUv/c Fj1Suc1WX3D5V95U1AEC5rStTCFtmwyMq6Lh08S1LKYiLODf6LkApeQKZuzx++yql07Q 7Dzs/YA9GPNYVev6W/yF1qtkRSKdJGMTzKh2yLEOPzJS8tuHVR54UXUiTqWnSGDIToBC JRpQ== 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=Plmqr8T2t4GrY3nGHpNZVJ3zQJ2VlMh3bD08rrYdOaw=; b=aimiarO1fCtAVtM18IynNhvmnLfg7haeBwYmzdF2IIXrvHoNAjwNsOjQLYBvS1JPPD xA4z108vtfRh3AOwm6AHsaxb/oPtLYLnxZxFvvoYjC2+tG6pTxQkqFCnOsXBFy0BzqmP T842BnjWewyynVM0zN3LwvKX5xl/qNLRSuaiU5AGn3tk+JpAuXwvM/hx0/UENOktxJj5 Dznl7ytdXFAn5BqESc/dVdJdXRada7UKXBRTVmy2HNUIwYkiNbjbR2xw+iC9yoFuVq0t Sh+ueOIcRNlelwzXR5Ib2iq1ByeCafxlVpnwWhpFzPOjDv12D3F2WWieY5BASPZZcWXy ATtg== 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 hr40-20020a1709073fa800b00781132a4ca6si9301593ejc.850.2022.11.06.18.20.14; Sun, 06 Nov 2022 18:20:37 -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 S230327AbiKGBoT (ORCPT + 95 others); Sun, 6 Nov 2022 20:44:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbiKGBoO (ORCPT ); Sun, 6 Nov 2022 20:44:14 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63CF6D2C3; Sun, 6 Nov 2022 17:44:12 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id A7DD11E80D89; Mon, 7 Nov 2022 09:41: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 WwgNVPdpX_TG; Mon, 7 Nov 2022 09:41: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 9745C1E80D59; Mon, 7 Nov 2022 09:41:46 +0800 (CST) From: Li zeming To: zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] integrity: iint: Remove unnecessary (void*) conversions Date: Mon, 7 Nov 2022 09:44:02 +0800 Message-Id: <20221107014402.3088-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 iint pointer does not need to cast the type. Signed-off-by: Li zeming --- security/integrity/iint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity/iint.c b/security/integrity/iint.c index 8638976f7990..d66b94c7c8d5 100644 --- a/security/integrity/iint.c +++ b/security/integrity/iint.c @@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode) static void init_once(void *foo) { - struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo; + struct integrity_iint_cache *iint = foo; memset(iint, 0, sizeof(*iint)); iint->ima_file_status = INTEGRITY_UNKNOWN; -- 2.18.2