From patchwork Mon Nov 7 01:44:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 16215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1776815wru; Sun, 6 Nov 2022 17:53:50 -0800 (PST) X-Google-Smtp-Source: AMsMyM6FUZOF35HW7dcOwnlnZRYByZCr0Ud3SDVuC1QmkOodO6VWI6lSHhHlDcPg6U0XqPysv1ws X-Received: by 2002:a17:903:3011:b0:186:892d:1c4c with SMTP id o17-20020a170903301100b00186892d1c4cmr47770012pla.152.1667786030537; Sun, 06 Nov 2022 17:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667786030; cv=none; d=google.com; s=arc-20160816; b=yQFeinGqtWpDcny51FXYUM8o2v5q1ubVwYAlrT6vlRLez//wW90sjcfgjzf2obCWWS 7brlRgOLajLUxwEjx01/kQdOvsIYMD4X/O57zpSzYBkzdzNdK6hiy8IRABPrPdgkWuKh ANG3z3t4K4kM8OoO1eDO7g05OG2bs4gagSMk62edQ5d7a8fcru7GO6yb1RFWReZuuDcg KpXDrIzjEAqzJrMhOWIAymdJMxFxIfgOvVVkmGQOQP6skttfgbyt3Vh6AC2OTvjaanzI slgmTffB+oyup+Ve+qiFgu4aerQ2lTi98eIf4ULUr3XPTpRM93yMUa4v6QLX9JCsHapT CZLg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a056a0021d200b0056e42f70e12si9577473pfj.306.2022.11.06.17.53.37; Sun, 06 Nov 2022 17:53:50 -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 + 99 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748800404310262815?= X-GMAIL-MSGID: =?utf-8?q?1748800404310262815?= 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;