Re: [PATCH] kernel/signal: Remove unnecessary ‘NULL’ values from ucounts

From: Oleg Nesterov
Date: Tue Sep 26 2023 - 19:08:58 EST


On 09/26, Li kunyu wrote:
>
> --- 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;

this looks obviously correct, so

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>


but you know, this change is so trivial, perhaps you should
resend this minor cleanup to kernel-janitors@xxxxxxxxxxxxxxx

but let me add Andrew, perhaps he will take this patch...

Oleg.