Skip to content

Commit a287116

Browse files
likunyurakpm00
authored andcommitted
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]>
1 parent a1cfa25 commit a287116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ __sigqueue_alloc(int sig, struct task_struct *t, gfp_t gfp_flags,
415415
int override_rlimit, const unsigned int sigqueue_flags)
416416
{
417417
struct sigqueue *q = NULL;
418-
struct ucounts *ucounts = NULL;
418+
struct ucounts *ucounts;
419419
long sigpending;
420420

421421
/*

0 commit comments

Comments
 (0)