]> git.ipfire.org Git - thirdparty/kmod.git/commit
Remove default initializer for static variables
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 29 May 2025 08:30:58 +0000 (09:30 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 30 May 2025 02:16:00 +0000 (21:16 -0500)
commit13b646a73f53716cba3d4a451aec96fbd72d878b
treec5281ce8eb63b338abfb7f2bd72b75edc88e7865
parent5a65df53d492689508c0602ee7b8a41c61ecbb1c
Remove default initializer for static variables

The spec dictates that static variables are initialized to 0/NULL.
Remove the unnecessary explicit initialization - on older compilers this
sheds a few bytes off the data section of respective binaries.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/358
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-file-xz.c
libkmod/libkmod-file-zlib.c
libkmod/libkmod-file-zstd.c
shared/util.h
testsuite/testsuite.c
tools/modinfo.c
tools/modprobe.c