Skip to contentSkip to conversation

devcoredump: Remove exit call

PATCH New Heiner Kallweit 1 participant 1 message Apr 2

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devcoredump: Remove exit call

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.

---
 drivers/base/devcoredump.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/base/devcoredump.c +0 -7
index 7e4a491bf..8bb176308 100644
@@ -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);
Signature · 1 line
2.53.0