drivers/net/pppol2tp.c: remove exceptional & on function name
authorJulia Lawall <julia@diku.dk>
Wed, 18 Nov 2009 08:22:44 +0000 (08:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Nov 2009 18:48:42 +0000 (10:48 -0800)
In this file, function names are otherwise used as pointers without &.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

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

f(...) { ... }

@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppol2tp.c

index 442c382c2c850f4940f49cd0bbb63ae14d10e717..c58b50f8ba3b68c70deb79925834d3a52cc4f586 100644 (file)
@@ -1537,7 +1537,7 @@ static struct sock *pppol2tp_prepare_tunnel_socket(struct net *net,
         * if the tunnel socket goes away.
         */
        tunnel->old_sk_destruct = sk->sk_destruct;
-       sk->sk_destruct = &pppol2tp_tunnel_destruct;
+       sk->sk_destruct = pppol2tp_tunnel_destruct;
 
        tunnel->sock = sk;
        sk->sk_allocation = GFP_ATOMIC;