1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-01 09:47:35 +03:00

udev-builtin-kmod: log about unloading only when already loaded

This commit is contained in:
Yu Watanabe 2024-12-04 04:55:12 +09:00
parent 9c6c4ad173
commit 46d9f19465

View File

@ -68,11 +68,10 @@ static int builtin_kmod_init(void) {
/* called on udev shutdown and reload request */
static void builtin_kmod_exit(void) {
log_debug("Unload kernel module index.");
if (!ctx)
return;
log_debug("Unload kernel module index.");
ctx = sym_kmod_unref(ctx);
}