Skip to content

Commit

Permalink
lib/test_vmalloc.c: drop empty exit function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
martin-kaiser authored and akpm00 committed Mar 5, 2024
1 parent 44503b9 commit e2c5bfe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/test_vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e2c5bfe

Please sign in to comment.