Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3722332rdb; Wed, 27 Dec 2023 18:56:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCKWqYTMwVtyHMFzgtPEfa3vExo7yCNJnsxOz7cYXU7iG95I8HPMANSYejCw+22QVvEEx3 X-Received: by 2002:a05:6512:789:b0:50e:6b0c:d5f7 with SMTP id x9-20020a056512078900b0050e6b0cd5f7mr2861056lfr.46.1703732204867; Wed, 27 Dec 2023 18:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703732204; cv=none; d=google.com; s=arc-20160816; b=CP9yoELyECxQMnl7jgI7Jx4u68OyD1rjyQ1sqEMXW0lB1NV6Le1kEgAbcLyfhobrZF ROzf7dYQplm0ttDVoMkOouDGYj01/OLPpWVDh5m3f332ZK+jSY4M5n28TW86jZSh8iDx zRMsntzqKtjfWtnHvTc8QrqDWdhc5F7ljY77GF1OllKmpOAeRMLGmpTKhn04NDeqLiRn yDO7YaP/cmidsR7HzVZzH0Wz1WncXgmn+2BYfw3tx1awwzq0dkprXowAJjlfxhYCpFLG B8fMsiz3O6P8dw6ccaoUdKXfh9/5xqZAI8wpNlTMMxjpFpzrx+XXNPcHCfTbEDndnfZN hpog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=zSUAZjDz4uARrlJUuexZUvIlSyJ4iHR/aLgbeFHdjzM=; fh=F3FC/btZPaHbBdlGiVSwz294weEVs8moQlGRnHDAm6U=; b=XFzqgiyNO0J4SvdpELpFhd2G5++KVnbqm/mYy0DXGdAiYIlMccE/MHol0t+lwNfik3 qr1FlOU6Q01gvCzR3u3cBWGD/C/FH/VDG3SJrGVvmnthH3CBVWbI52bxutdFcpnz1Pro HT5ActCLKYixGlVu3ISW3D2WDDOWUSW992QPjWlmgm7ucpUPZQN5RaSHKVl5En3oDs+r pMT1itDxK8gDUre7G5tvsM93h2m4P1vXEojLUNZ2hGQ6cukcBifULdhn/sdjaVeGRx+9 iGqqkk4OaHGQtL3/uoVbGvvER2SmWeYacDZeOqEQEkpIwCPgO+cqBg9lqq9uzn4l23ik 0pkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12396-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i23-20020a508717000000b005549ec070cdsi4134114edb.327.2023.12.27.18.56.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 18:56:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12396-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7DCDA1F2213B for ; Thu, 28 Dec 2023 02:56:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3812C1396; Thu, 28 Dec 2023 02:56:38 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id CA5B110E5; Thu, 28 Dec 2023 02:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id C59576019CDE0; Thu, 28 Dec 2023 10:56:06 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: paul@paul-moore.com, eparis@redhat.com Cc: audit@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernel:=20auditfilter:=20Remove=20unnecessary?= =?UTF-8?q?=20=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Thu, 28 Dec 2023 10:56:00 +0800 Message-Id: <20231228025600.9796-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ret variable is assigned when it does not need to be defined, as it has already been assigned before use. Signed-off-by: Li zeming --- kernel/auditfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 8317a37dea0bb..be8c680121e46 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -788,7 +788,7 @@ static int audit_compare_rule(struct audit_krule *a, struct audit_krule *b) static inline int audit_dupe_lsm_field(struct audit_field *df, struct audit_field *sf) { - int ret = 0; + int ret; char *lsm_str; /* our own copy of lsm_str */ -- 2.18.2