Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp624772ybz; Wed, 15 Apr 2020 15:22:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLt1nZ7g/E+AF6vdWknXXZt833pDeCdkVJ6irgG9JBprDfyHSOCs0xkR6mcypM4qSgldC2e X-Received: by 2002:a17:906:5958:: with SMTP id g24mr7296600ejr.58.1586989359641; Wed, 15 Apr 2020 15:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989359; cv=none; d=google.com; s=arc-20160816; b=vLDqAu2MxoQ5flBI/7oNAN7jR0f3y2n6y6UyJzZi1Rwqk/q+sMkKyCBFqIL+U7rfT0 RV2brrBcmwncRqHmLH/eqTltQZU/3PPR2aYIWE5jSYZjLRitfr2KhgdS0Xho3bIpZhY2 4RUrNUE74k++F+E2NDCrd1HZ29CY+7DNMWqWs79h0I9rkOmN+KnPQptsqbZEXjA4Rbhn GJpiz/XGkKMyvB3a+Q1Jk1yxrzWgEdsYmBuRKPG4QaHMK1IreOIUo6ghURH/eJGXVU8r xt3aZ0jA3DBn153QGQ+2r1MRMRIn+6RgEUf4TjxUWTl0EAotYeek6ESJE0Ym+EfZDudA ePdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xz0xE1Ah9YrrB07GlW7yG28CGdUnnHL/sNVof2m9MIo=; b=EkcY0MDeCzpoOrfBcJJrZ7IYvupX7vmxY2+Bwb3UYw75+MK5Sj4N8XuaTj199596x5 cN5zH3AAL0phFJgTz1i0PVuq8F8keXhY6NdYYewC+5Prg2/UNN596uaipz0h5CtgH5vE NM/5R6eVf/MlZZlne4hTJoTed7yENfW417eAZq8RB8O43gUMsHfJJpszq168pGXsNXv6 Ps3n1bdVAfvjDzDpQD1U2gdWkXKBOIwkaiHWsYUl7XzwlZ9/9sRAiKxXPB3s0z/9YT1h JLa9MiYSnTSJeF0JIj55vfTDix0VRLOAnRaEgYoCbfA+ayjxkIGrwgQ7rgmh/tLsz9Ei GGLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si5097073edn.165.2020.04.15.15.22.15; Wed, 15 Apr 2020 15:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2635368AbgDOHyh (ORCPT + 99 others); Wed, 15 Apr 2020 03:54:37 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:33115 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2635370AbgDOHxp (ORCPT ); Wed, 15 Apr 2020 03:53:45 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01355;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0TvbEM8q_1586937215; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0TvbEM8q_1586937215) by smtp.aliyun-inc.com(127.0.0.1); Wed, 15 Apr 2020 15:53:35 +0800 From: Tianjia Zhang To: zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, zhangliguang@linux.alibaba.com, zhang.jia@linux.alibaba.com Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, tianjia.zhang@linux.alibaba.com Subject: [PATCH] ima: remove redundant code Date: Wed, 15 Apr 2020 15:53:35 +0800 Message-Id: <20200415075335.72141-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary initialization of linked list nodes. Signed-off-by: Tianjia Zhang --- security/integrity/ima/ima_queue.c | 1 - 1 file changed, 1 deletion(-) diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c index 8753212ddb18..edbc2d6962be 100644 --- a/security/integrity/ima/ima_queue.c +++ b/security/integrity/ima/ima_queue.c @@ -102,7 +102,6 @@ static int ima_add_digest_entry(struct ima_template_entry *entry, } qe->entry = entry; - INIT_LIST_HEAD(&qe->later); list_add_tail_rcu(&qe->later, &ima_measurements); atomic_long_inc(&ima_htable.len); -- 2.17.1