summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-11-15 14:22:44 +0530
committerTushar Behera <tushar.behera@linaro.org>2012-11-21 10:13:51 +0530
commita65490e645370cbb81f3fab71b97bf8080fd0d11 (patch)
tree555e4d9033c0c171efdb68a940fe12c1fceb3158
parent846191a3939a4cddcedbd8baedd74cd9c763f396 (diff)
netfilter: xt_quota2: Remove extra parameter from netlink_kernel_create
Required as per commit 9f00d9776bc5 ("netlink: hide struct module parameter in netlink_kernel_create"). Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--net/netfilter/xt_quota2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/netfilter/xt_quota2.c b/net/netfilter/xt_quota2.c
index 3a9c1f9475ce..8163f370d04b 100644
--- a/net/netfilter/xt_quota2.c
+++ b/net/netfilter/xt_quota2.c
@@ -350,14 +350,15 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
static int __init quota_mt2_init(void)
{
int ret;
+#ifdef CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG
struct netlink_kernel_cfg cfg = {
.groups = 1,
};
+#endif
pr_debug("xt_quota2: init()");
#ifdef CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG
- nflognl = netlink_kernel_create(&init_net, NETLINK_NFLOG,
- THIS_MODULE, &cfg);
+ nflognl = netlink_kernel_create(&init_net, NETLINK_NFLOG, &cfg);
if (!nflognl)
return -ENOMEM;
#endif