]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
devcoredump: Remove exit call
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 2 Apr 2026 21:17:13 +0000 (23:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 11:26:51 +0000 (13:26 +0200)
Kconfig symbol DEV_COREDUMP is of type bool, therefore devcoredump
can't be built as a module and the exit code is a no-op.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/39a3821b-03d6-4ff0-97b7-82411a76d39a@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devcoredump.c

index 7e4a491bf15e084f6605a6e31e9102e6f16aed03..8bb1763083dd77eba2db99bfab3da38d30e9d876 100644 (file)
@@ -471,10 +471,3 @@ static int __init devcoredump_init(void)
        return class_register(&devcd_class);
 }
 __initcall(devcoredump_init);
-
-static void __exit devcoredump_exit(void)
-{
-       class_for_each_device(&devcd_class, NULL, NULL, devcd_free);
-       class_unregister(&devcd_class);
-}
-__exitcall(devcoredump_exit);