Skip to content

kernel: remove redundant static variable initializations

Igor Putko lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kernel/workqueue: remove redundant initialization for static variableskernel/workqueue.c+2 -20 replies
2/2kernel/stop_machine: remove redundant initialization for stop_machine_initializedkernel/stop_machine.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] kernel: remove redundant static variable initializations

This series removes explicit initializations of static bool variables to false within the kernel/ subsystem. In C, static variables without explicit initialization are implicitly placed in the .bss section and initialized to zero/false by default. Removing these explicit initializations follows the Linux kernel coding style and avoids cluttering the data section.

Igor Putko (2):
kernel/workqueue: remove redundant initialization for static variables kernel/stop_machine: remove redundant initialization for
stop_machine_initialized

 kernel/stop_machine.c | 2 +-
 kernel/workqueue.c    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1