Skip to content

Commit

Permalink
zpool: remove no-op module init/exit
Browse files Browse the repository at this point in the history
Remove zpool_init() and zpool_exit(); they do nothing other than print
"loaded" and "unloaded".

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dan Streetman authored and Linus Torvalds committed Sep 8, 2015
1 parent c83db4f commit df69f52
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions mm/zpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,20 +320,6 @@ u64 zpool_get_total_size(struct zpool *zpool)
return zpool->driver->total_size(zpool->pool);
}

static int __init init_zpool(void)
{
pr_info("loaded\n");
return 0;
}

static void __exit exit_zpool(void)
{
pr_info("unloaded\n");
}

module_init(init_zpool);
module_exit(exit_zpool);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Dan Streetman <ddstreet@ieee.org>");
MODULE_DESCRIPTION("Common API for compressed memory storage");

0 comments on commit df69f52

Please sign in to comment.