diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-09-07 22:53:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-08 18:46:30 -0400 |
commit | 9f00d9776bc5beb92e8bfc884a7e96ddc5589e2e (patch) | |
tree | 2a9f9513a13c73cb1196ebe3426389c1140e2888 /net/xfrm | |
parent | 9785e10aedfa0fad5c1aac709dce5ada1b123783 (diff) |
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 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index ab58034c42d6..354070adb5ef 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -2963,7 +2963,7 @@ static int __net_init xfrm_user_net_init(struct net *net) | |||
2963 | .input = xfrm_netlink_rcv, | 2963 | .input = xfrm_netlink_rcv, |
2964 | }; | 2964 | }; |
2965 | 2965 | ||
2966 | nlsk = netlink_kernel_create(net, NETLINK_XFRM, THIS_MODULE, &cfg); | 2966 | nlsk = netlink_kernel_create(net, NETLINK_XFRM, &cfg); |
2967 | if (nlsk == NULL) | 2967 | if (nlsk == NULL) |
2968 | return -ENOMEM; | 2968 | return -ENOMEM; |
2969 | net->xfrm.nlsk_stash = nlsk; /* Don't set to NULL */ | 2969 | net->xfrm.nlsk_stash = nlsk; /* Don't set to NULL */ |