Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7961751rdb; Thu, 4 Jan 2024 13:30:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6STYnu0+WCEYnPgwCPjVzFkI0S5hekW4cpbq9Ba4bxqI3hiLpgyfd74wBhTRdkxwFQUvh X-Received: by 2002:a05:6a20:1592:b0:198:fc09:e50e with SMTP id h18-20020a056a20159200b00198fc09e50emr1169000pzj.7.1704403859372; Thu, 04 Jan 2024 13:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704403859; cv=none; d=google.com; s=arc-20160816; b=gbG2Y+8pwBS630V9qV70lVHllDPsyXKyCgxw9TABKk2j5CW3yXpLG/7Xm68usxNsmb Dd525n1lf0QJRtvRQ5dEkrwWPimFEwxvktEMtVXaHDxrwoqfxU4CG7QMJWwt94H4urOr IE8zv39OjqoBBieLuyZtWzUnamJh5NrkshyUaZ5XIkqmFrPXJThPtPBEdzeZv5gOsUAX pUgxztMdtM5/q9ti7fE0RCX4eMeDIapTTwdaJI2ZUNeCmohj9bzPTRAPcgT3xW9EFuyG A1b49ZJmoe/KjejZMZn2lC0Cna/WgMNwNJuu0GDQhqEKMZoetoUhoYK2AsHyZIyMQufq rHgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=liy/6VgmB8kWQ21CUUxI99uteVuJGjbMlq+ZYGusDy4=; fh=cdotZ7n7HWNw6QrR8HOYg6cIwOQF6LE6DL+DjxVSjFs=; b=0Vm6sjIVsoQ7GNyns1/T/Tsi0BnNPkibHSSUNXWY4cyW8m0pntVrx4fMjjbohBr7lX szSixkw9My/DgEAeI4+oDqfevoBde65i0GK77mrEweI92b1/DMHmch4l8RhZQE0jc3Sw HQJLOctcjyaZuZfeH6qG7Uzp8Ema/fP47LlNAXu5U0kEt/efVvQ3Dcf6dfai3TLQwXRV ARzs+IVf92ZYsfq2m7Tcjzxyqw72+1oSRJl0eRlOYYIz0himteUqV3ApU7n/SypW5PyG tIyQK0vMioKeziO4+r3YT+VvvnU2Eejp44psW7sPjLW6a375UkazxEBlsVENxWedeh5U zR1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=TpAPfgSV; spf=pass (google.com: domain of linux-kernel+bounces-17241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 185-20020a6301c2000000b005cec867ecf0si200548pgb.105.2024.01.04.13.30.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 13:30:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=TpAPfgSV; spf=pass (google.com: domain of linux-kernel+bounces-17241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 945A32832C7 for ; Thu, 4 Jan 2024 21:30:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE9362C6B9; Thu, 4 Jan 2024 21:30:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="TpAPfgSV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B084F2C6A2 for ; Thu, 4 Jan 2024 21:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-dbe39a45e8eso834781276.1 for ; Thu, 04 Jan 2024 13:30:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1704403849; x=1705008649; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=liy/6VgmB8kWQ21CUUxI99uteVuJGjbMlq+ZYGusDy4=; b=TpAPfgSVWJVfKtYMhiLgLlhVGYSDAls75B+o9NAX0XXbP4VjTM79OxQyZbANiCX6KR r8+QRbK7qdFHCt0bJsznJH1DDV3AjLl/jAfnShvBiWI8mnIaGnhkAbI432RU4vs62U75 xdRxaRRiuIu7tsnIdkJ29KJD0J2aZemVzj1haSdyTQgsFMCsfmWUNcOCnepPyznbHOB6 nJpuxSVTmndW37VGHrRFly38OSGMnZ2Z5jLfHotYAa9OvSH5XYMudr+otQ9j6oXSIPxQ LvV5M6wdHVqrqHpzBr15PX/aDbcVjAGrmpmdFrWqaaGItkza2WeZ9FclIHOBzdxZU3QA capA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704403849; x=1705008649; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=liy/6VgmB8kWQ21CUUxI99uteVuJGjbMlq+ZYGusDy4=; b=XAe8bfSgtRUgFM+NN71RHDW0eCU8MR9vxkSXPT+GDfBWCbfRSQwcxiuu4DEkKuUPWv TA8nTuq+M6YyefdbsQa0mThTqw2u616lhy1z11zNrf64Eiub6eOaQzE7gVxaM5M70eO3 dSpUDRvRTJfjSTn1IgOs8Y1TEjWysHx7JeEywBlvTmjTzLGw/ElaRyKp2p5/TE+VuAq0 trWkyE7NZl/hAc0LZ7w1T7Lx1SLdHSrQ15DPnW2xHSxtM80Q5G9ONspPnZZYOyUXiAu5 hxoWpjX6J+c65w+EZSkukUtdKgx+NFSMDtZe756mOUZgN4FJVG6dZ/MO36KC2DyigB3t cuRQ== X-Gm-Message-State: AOJu0Yz2ZulV0Aq7SDwRmv3qyaY8xKhEZvTCGBYrpwtvMa49dY+esZPi pimbXzY8tWK2Obbn82L71ICIRaXPNc2lSXlOf0A89wToQ5tP X-Received: by 2002:a25:8043:0:b0:dbe:a236:d6a4 with SMTP id a3-20020a258043000000b00dbea236d6a4mr1051292ybn.53.1704403849633; Thu, 04 Jan 2024 13:30:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231228025600.9796-1-zeming@nfschina.com> In-Reply-To: <20231228025600.9796-1-zeming@nfschina.com> From: Paul Moore Date: Thu, 4 Jan 2024 16:30:38 -0500 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5BPATCH=5D_kernel=3A_auditfilter=3A_Remove_unnecessary_?= =?UTF-8?Q?=E2=80=980=E2=80=99_values_from_ret?= To: Li zeming Cc: eparis@redhat.com, audit@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 27, 2023 at 9:56=E2=80=AFPM Li zeming wro= te: > > 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(-) Thanks for the patch, as this is not a critical change it will be processed after the upcoming merge window closes. > 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 =3D 0; > + int ret; > char *lsm_str; > > /* our own copy of lsm_str */ > -- > 2.18.2 --=20 paul-moore.com