projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1cfa25
)
kernel/signal: remove unnecessary NULL values from ucounts
author
Li kunyu
<kunyu@nfschina.com>
Tue, 26 Sep 2023 02:24:10 +0000
(10:24 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:43:22 +0000
(14:43 -0700)
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>
kernel/signal.c
patch
|
blob
|
history
diff --git
a/kernel/signal.c
b/kernel/signal.c
index ccfc3ded5672165894fee2d17be43230a4b78636..edaf39382d21d8d851002a4962e1bc8df0c5d040 100644
(file)
--- 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;
/*