]> granicus.if.org Git - ipset/commitdiff
netfilter: Remove exceptional & on function name
authorArushi Singhal <arushisinghal19971997@gmail.com>
Mon, 11 Sep 2017 18:20:00 +0000 (20:20 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 11 Sep 2017 18:20:00 +0000 (20:20 +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>
kernel/net/netfilter/ipset/ip_set_core.c

index de43aa14cfb24945029496d906ddb2bdef1a2fbf..fbb8df11359908a1c2deb9b0bb0754d6e6629918 100644 (file)
@@ -2043,7 +2043,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,
 };