diff options
author | Li kunyu <[email protected]> | 2023-09-26 10:24:10 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-10-18 14:43:22 -0700 |
commit | a287116af12b33d8a03a281fce08af5acaac6ade (patch) | |
tree | c2c67f47a5bc5bf0795639161b7bfa97c292c2ef | |
parent | a1cfa251f8d99b8a446c395a84ec9c537d3d8c45 (diff) |
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/[email protected]
Signed-off-by: Li kunyu <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-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; /* |