]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: remove kmod_file::{zstd,xz}_used flags
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 12 Feb 2024 17:23:04 +0000 (17:23 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 30 Apr 2024 17:33:52 +0000 (12:33 -0500)
commit03da2db1358f5ae3b50596f04e5e05bcf7a48fee
tree8694f2ccf4dfacd12ec9c249e7dc705a75040e05
parent09256b9a4f79976b28d2b15c4be3ee805d57edff
libkmod: remove kmod_file::{zstd,xz}_used flags

These are used to protect a free(file->memory), within their respective
unload functions. Where the sole caller of the unload function already
does a NULL check prior.

Even so, free(NULL) is guaranteed to be safe by the standard.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-file.c