Skip to contentSkip to conversation

kernel/signal: Remove unnecessary ‘NULL’ values from ucounts

PATCH Applied Li kunyu 2 participants 2 messages Sep 26, 2023

lore
Share & tools
lore

Li kunyu

author
#0 lore raw

PATCH 1/1 kernel/signal: Remove unnecessary ‘NULL’ values from ucounts

ucounts is assigned first, so it does not need to initialize the assignment.

---
 kernel/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c +1 -1
index 09019017d669..27f6cd37ac4f 100644
@@ -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;
 
 	/*
Signature · 1 line
2.18.2
Acked-by on v1 1/1
#1 lore raw

kernel/signal.c __sigqueue_alloc(int sig, struct task_struct *t, gfp_t gfp_flags, · line 419

Quoted 10 lines · Li kunyu
kernel/signal.c +1 -1
@@ -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

but you know, this change is so trivial, perhaps you should resend this minor cleanup to [email protected]

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

Oleg.