]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
netfilter: Remove exceptional & on function name
authorArushi Singhal <arushisinghal19971997@gmail.com>
Sun, 2 Apr 2017 09:22:12 +0000 (14:52 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Apr 2017 16:24:47 +0000 (18:24 +0200)
Remove & from function pointers to conform to the style found elsewhere
in the file. Done using the following semantic patch

// <smpl>
@r@
identifier f;
@@

f(...) { ... }
@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
14 files changed:
net/bridge/netfilter/nft_meta_bridge.c
net/ipv4/netfilter/nft_fib_ipv4.c
net/ipv6/netfilter/nft_fib_ipv6.c
net/netfilter/ipset/ip_set_core.c
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/netfilter/nft_ct.c
net/netfilter/nft_exthdr.c
net/netfilter/nft_hash.c
net/netfilter/nft_meta.c
net/netfilter/nft_numgen.c
net/netfilter/nft_queue.c

index 5974dbc1ea240fa6b8b2d109891ab211a8d556ff..bb63c9aed55d22af0f9d6538267e50900701a351 100644 (file)
@@ -111,7 +111,7 @@ nft_meta_bridge_select_ops(const struct nft_ctx *ctx,
 static struct nft_expr_type nft_meta_bridge_type __read_mostly = {
        .family         = NFPROTO_BRIDGE,
        .name           = "meta",
-       .select_ops     = &nft_meta_bridge_select_ops,
+       .select_ops     = nft_meta_bridge_select_ops,
        .policy         = nft_meta_policy,
        .maxattr        = NFTA_META_MAX,
        .owner          = THIS_MODULE,
index f4e4462cb5bb1b877fac32d7718ead86e97e91f2..de3681df2ce71c7341d96dd5d2540ab110ac80eb 100644 (file)
@@ -212,7 +212,7 @@ nft_fib4_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_fib4_type __read_mostly = {
        .name           = "fib",
-       .select_ops     = &nft_fib4_select_ops,
+       .select_ops     = nft_fib4_select_ops,
        .policy         = nft_fib_policy,
        .maxattr        = NFTA_FIB_MAX,
        .family         = NFPROTO_IPV4,
index e8d88d82636b759c68f348455ec17b526408b926..43f91d9b086c7d5c66860ae2eef4ace040acbcff 100644 (file)
@@ -246,7 +246,7 @@ nft_fib6_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_fib6_type __read_mostly = {
        .name           = "fib",
-       .select_ops     = &nft_fib6_select_ops,
+       .select_ops     = nft_fib6_select_ops,
        .policy         = nft_fib_policy,
        .maxattr        = NFTA_FIB_MAX,
        .family         = NFPROTO_IPV6,
index c637710d861c6d851bb26991292a7147b98d508e..cb120c3c040ec480db2ee8df29218d5442a83cf3 100644 (file)
@@ -2013,7 +2013,7 @@ static struct nf_sockopt_ops so_set __read_mostly = {
        .pf             = PF_INET,
        .get_optmin     = SO_IP_SET,
        .get_optmax     = SO_IP_SET + 1,
-       .get            = &ip_set_sockfn_get,
+       .get            = ip_set_sockfn_get,
        .owner          = THIS_MODULE,
 };
 
index c578b6c0dc4112bc91196c3cf936848db8518c63..90ac6bc1bd287638ea673e57f5e4206bf0015d83 100644 (file)
@@ -1774,13 +1774,13 @@ static struct ctl_table vs_vars[] = {
                .procname       = "sync_version",
                .maxlen         = sizeof(int),
                .mode           = 0644,
-               .proc_handler   = &proc_do_sync_mode,
+               .proc_handler   = proc_do_sync_mode,
        },
        {
                .procname       = "sync_ports",
                .maxlen         = sizeof(int),
                .mode           = 0644,
-               .proc_handler   = &proc_do_sync_ports,
+               .proc_handler   = proc_do_sync_ports,
        },
        {
                .procname       = "sync_persist_mode",
index 68eda920160e12f3cb904dad08b7f6cc9422571e..185f9786a5a4c51ffa1eaa65ea35ff86336735c1 100644 (file)
@@ -500,7 +500,7 @@ static void nfnetlink_rcv(struct sk_buff *skb)
        if (nlh->nlmsg_type == NFNL_MSG_BATCH_BEGIN)
                nfnetlink_rcv_skb_batch(skb, nlh);
        else
-               netlink_rcv_skb(skb, &nfnetlink_rcv_msg);
+               netlink_rcv_skb(skb, nfnetlink_rcv_msg);
 }
 
 #ifdef CONFIG_MODULES
index e7648e90d16239b6c5d521080f61913f6479d0d2..896741206a50229870c23cde40c2103fa16dd35b 100644 (file)
@@ -803,7 +803,7 @@ static int nfulnl_recv_unsupp(struct net *net, struct sock *ctnl,
 static struct nf_logger nfulnl_logger __read_mostly = {
        .name   = "nfnetlink_log",
        .type   = NF_LOG_TYPE_ULOG,
-       .logfn  = &nfulnl_log_packet,
+       .logfn  = nfulnl_log_packet,
        .me     = THIS_MODULE,
 };
 
index 05e82004ab62bfd92fe67057c27e6672e0f291ac..d09ab49e102a281f0dc52bc2069809c1f81935c9 100644 (file)
@@ -1213,8 +1213,8 @@ static const struct nla_policy nfqa_cfg_policy[NFQA_CFG_MAX+1] = {
 };
 
 static const struct nf_queue_handler nfqh = {
-       .outfn          = &nfqnl_enqueue_packet,
-       .nf_hook_drop   = &nfqnl_nf_hook_drop,
+       .outfn          = nfqnl_enqueue_packet,
+       .nf_hook_drop   = nfqnl_nf_hook_drop,
 };
 
 static int nfqnl_recv_config(struct net *net, struct sock *ctnl,
index 640fe5a5865ef26ea71378535927f6bbd9a6aceb..6e23dbbedd7f4eb4d19300817ee2284e508fd827 100644 (file)
@@ -702,7 +702,7 @@ nft_ct_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_ct_type __read_mostly = {
        .name           = "ct",
-       .select_ops     = &nft_ct_select_ops,
+       .select_ops     = nft_ct_select_ops,
        .policy         = nft_ct_policy,
        .maxattr        = NFTA_CT_MAX,
        .owner          = THIS_MODULE,
index d212a85d2f3336e1b1a393c5ac4bf4fc8f1eebca..1ec49fe5845f1ec8f289f411d456a5765303e244 100644 (file)
@@ -232,7 +232,7 @@ nft_exthdr_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_exthdr_type __read_mostly = {
        .name           = "exthdr",
-       .select_ops     = &nft_exthdr_select_ops,
+       .select_ops     = nft_exthdr_select_ops,
        .policy         = nft_exthdr_policy,
        .maxattr        = NFTA_EXTHDR_MAX,
        .owner          = THIS_MODULE,
index a6a4633725bb4cba848112bc3ea9978fe34d6ea4..4cfe524d87292b3bd9fc75f80c7655290957a70d 100644 (file)
@@ -224,7 +224,7 @@ nft_hash_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_hash_type __read_mostly = {
        .name           = "hash",
-       .select_ops     = &nft_hash_select_ops,
+       .select_ops     = nft_hash_select_ops,
        .policy         = nft_hash_policy,
        .maxattr        = NFTA_HASH_MAX,
        .owner          = THIS_MODULE,
index 9563ce3c23aa078d781590c475f8981fe198d393..5a60eb23a7ed8cc82cc2500c7f8c116ee6df2f30 100644 (file)
@@ -467,7 +467,7 @@ nft_meta_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_meta_type __read_mostly = {
        .name           = "meta",
-       .select_ops     = &nft_meta_select_ops,
+       .select_ops     = nft_meta_select_ops,
        .policy         = nft_meta_policy,
        .maxattr        = NFTA_META_MAX,
        .owner          = THIS_MODULE,
index a66b36097b8f4f3cc1d230d9943be852866fcfbd..5a3a52c71545ac15ae5c906dbf53d6d425c3c557 100644 (file)
@@ -188,7 +188,7 @@ nft_ng_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[])
 
 static struct nft_expr_type nft_ng_type __read_mostly = {
        .name           = "numgen",
-       .select_ops     = &nft_ng_select_ops,
+       .select_ops     = nft_ng_select_ops,
        .policy         = nft_ng_policy,
        .maxattr        = NFTA_NG_MAX,
        .owner          = THIS_MODULE,
index dbb6aaff67ec5c151f8c8c6333721421f8e85076..98613658d4ac5ce359e946efca4c93d9df216817 100644 (file)
@@ -197,7 +197,7 @@ nft_queue_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_queue_type __read_mostly = {
        .name           = "queue",
-       .select_ops     = &nft_queue_select_ops,
+       .select_ops     = nft_queue_select_ops,
        .policy         = nft_queue_policy,
        .maxattr        = NFTA_QUEUE_MAX,
        .owner          = THIS_MODULE,