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 /drivers/scsi/scsi_transport_iscsi.c | |
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 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index fa1dfaa83e32..519bd5303f3f 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -2969,8 +2969,7 @@ static __init int iscsi_transport_init(void) | |||
2969 | if (err) | 2969 | if (err) |
2970 | goto unregister_conn_class; | 2970 | goto unregister_conn_class; |
2971 | 2971 | ||
2972 | nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, | 2972 | nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, &cfg); |
2973 | THIS_MODULE, &cfg); | ||
2974 | if (!nls) { | 2973 | if (!nls) { |
2975 | err = -ENOBUFS; | 2974 | err = -ENOBUFS; |
2976 | goto unregister_session_class; | 2975 | goto unregister_session_class; |