net_sched: remove exceptional & on function name
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 24 Jul 2014 20:20:41 +0000 (01:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jul 2014 06:23:32 +0000 (23:23 -0700)
In this file, function names are otherwise used as pointers without &.

A simplified version of the Coccinelle semantic patch that makes this
change is as follows:

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

f(...) { ... }

@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_tcindex.c

index c721cd4a469fe39f42186d82ec7ab04f17bcba26..3e9f76413b3b20e05a77bbabfa27961cee8d2e6b 100644 (file)
@@ -420,7 +420,7 @@ static void tcindex_destroy(struct tcf_proto *tp)
        pr_debug("tcindex_destroy(tp %p),p %p\n", tp, p);
        walker.count = 0;
        walker.skip = 0;
-       walker.fn = &tcindex_destroy_element;
+       walker.fn = tcindex_destroy_element;
        tcindex_walk(tp, &walker);
        kfree(p->perfect);
        kfree(p->h);