diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-09-08 02:53:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-08 18:46:30 -0400 |
commit | 0db9766742f9b41a14fb3f6c7bd444dae38cc842 (patch) | |
tree | cfd5db1f590a952ea6b8a7b84f4ae3913b76a90f /crypto | |
parent | 39c69fd2df9dab1f666478e1ecce15744cf02a3e (diff) | |
download | linux-crypto-0db9766742f9b41a14fb3f6c7bd444dae38cc842.tar.gz linux-crypto-0db9766742f9b41a14fb3f6c7bd444dae38cc842.zip |
netlink: hide struct module parameter in netlink_kernel_create
This patch defines netlink_kernel_create as a wrapper function of
__netlink_kernel_create to hide the struct module *me parameter
(which seems to be THIS_MODULE in all existing netlink subsystems).
Suggested by David S. Miller.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | crypto/crypto_user.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index ba2c6111..165914e6 100644 --- a/crypto/crypto_user.c +++ b/crypto/crypto_user.c @@ -500,8 +500,7 @@ static int __init crypto_user_init(void) .input = crypto_netlink_rcv, }; - crypto_nlsk = netlink_kernel_create(&init_net, NETLINK_CRYPTO, - THIS_MODULE, &cfg); + crypto_nlsk = netlink_kernel_create(&init_net, NETLINK_CRYPTO, &cfg); if (!crypto_nlsk) return -ENOMEM; |