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:
parent
9c6c4ad173
commit
46d9f19465
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user