diff options
author | Li kunyu <kunyu@nfschina.com> | 2023-09-26 04:24:10 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-18 23:43:22 +0200 |
commit | a287116af12b33d8a03a281fce08af5acaac6ade (patch) | |
tree | c2c67f47a5bc5bf0795639161b7bfa97c292c2ef | |
parent | ocfs2: annotate struct ocfs2_replay_map with __counted_by (diff) | |
download | linux-a287116af12b33d8a03a281fce08af5acaac6ade.tar.xz linux-a287116af12b33d8a03a281fce08af5acaac6ade.zip |
kernel/signal: remove unnecessary NULL values from ucounts
ucounts is assigned first, so it does not need to initialize the
assignment.
Link: https://lkml.kernel.org/r/20230926022410.4280-1-kunyu@nfschina.com
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index ccfc3ded5672..edaf39382d21 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -415,7 +415,7 @@ __sigqueue_alloc(int sig, struct task_struct *t, gfp_t gfp_flags, int override_rlimit, const unsigned int sigqueue_flags) { struct sigqueue *q = NULL; - struct ucounts *ucounts = NULL; + struct ucounts *ucounts; long sigpending; /* |