From: Li zeming <zeming@nfschina.com>
To: keescook@chromium.org, luto@amacapital.net, wad@chromium.org
Cc: linux-kernel@vger.kernel.org, Li zeming <zeming@nfschina.com>
Subject: [PATCH] seccomp: Remove unnecessary ‘NULL’ values from prepared
Date: Sat, 26 Aug 2023 02:43:48 +0800 [thread overview]
Message-ID: <20230825184348.6870-1-zeming@nfschina.com> (raw)
prepared is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
kernel/seccomp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index d3e584065c7f..af672e03449a 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -1838,7 +1838,7 @@ static long seccomp_set_mode_filter(unsigned int flags,
const char __user *filter)
{
const unsigned long seccomp_mode = SECCOMP_MODE_FILTER;
- struct seccomp_filter *prepared = NULL;
+ struct seccomp_filter *prepared;
long ret = -EINVAL;
int listener = -1;
struct file *listener_f = NULL;
--
2.18.2
next reply other threads:[~2023-08-24 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-25 18:43 Li zeming [this message]
2023-08-24 16:42 ` Kees Cook
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=20230825184348.6870-1-zeming@nfschina.com \
--to=zeming@nfschina.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=wad@chromium.org \
/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
all inboxes | Powered by JetHome®