lib/test_vmalloc.c: drop empty exit function
authorMartin Kaiser <martin@kaiser.cx>
Mon, 26 Feb 2024 19:11:58 +0000 (20:11 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Mar 2024 01:01:21 +0000 (17:01 -0800)
The module is never loaded successfully.  Therefore, it'll never be
unloaded and we can remove the exit function.

Link: https://lkml.kernel.org/r/20240226191159.39509-3-martin@kaiser.cx
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_vmalloc.c

index 191b6bd5dff9481a6dcf5c7096c5ac50947d70fc..d0c0cbe1913d7910f0748ac958f1c5721e8c887a 100644 (file)
@@ -600,12 +600,7 @@ static int vmalloc_test_init(void)
        return -EAGAIN; /* Fail will directly unload the module */
 }
 
-static void vmalloc_test_exit(void)
-{
-}
-
 module_init(vmalloc_test_init)
-module_exit(vmalloc_test_exit)
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Uladzislau Rezki");