mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Moore <paul@paul-moore.com>
To: Ricardo Robaina <rrobaina@redhat.com>,
	audit@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: eparis@redhat.com, Ricardo Robaina <rrobaina@redhat.com>
Subject: Re: [PATCH] audit: remove redundant initialization of static variables  to 0
Date: Mon, 02 Mar 2026 16:40:34 -0500	[thread overview]
Message-ID: <c0d6360d2ad56225bcd3b3c8fa196d71@paul-moore.com> (raw)
In-Reply-To: <20260226181338.2526777-1-rrobaina@redhat.com>

On Feb 26, 2026 Ricardo Robaina <rrobaina@redhat.com> wrote:
> 
> Static variables are automatically initialized to 0 by the compiler.
> Remove the redundant explicit assignments in kernel/audit.c to clean
> up the code, align with standard kernel coding style, and fix the
> following checkpatch.pl errors:
> 
>  ./scripts/checkpatch.pl kernel/audit.c | grep -A2 ERROR:
>  ERROR: do not initialise statics to 0
>  +	static unsigned long	last_check = 0;
>  --
>  ERROR: do not initialise statics to 0
>  +	static int		messages   = 0;
>  --
>  ERROR: do not initialise statics to 0
>  +	static unsigned long	last_msg = 0;
> 
> Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
> ---
>  kernel/audit.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Merged into audit/dev, thanks.

--
paul-moore.com

  reply	other threads:[~2026-03-02 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-26 18:13 Ricardo Robaina
2026-03-02 21:40 ` Paul Moore [this message]
2026-03-03 11:41   ` Ricardo Robaina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c0d6360d2ad56225bcd3b3c8fa196d71@paul-moore.com \
    --to=paul@paul-moore.com \
    --cc=audit@vger.kernel.org \
    --cc=eparis@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rrobaina@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome