drivers/net/wan: remove exceptional & on function name
authorJulia Lawall <julia@diku.dk>
Wed, 18 Nov 2009 08:24:30 +0000 (08:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Nov 2009 18:48:51 +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/wan/dscc4.c

index 81c8aec9df929b5f97df8b6978c505e0d86719f2..63a010252a374b3facb3784e2c27da52b3f5be17 100644 (file)
@@ -1127,7 +1127,7 @@ done:
         init_timer(&dpriv->timer);
         dpriv->timer.expires = jiffies + 10*HZ;
         dpriv->timer.data = (unsigned long)dev;
-        dpriv->timer.function = &dscc4_timer;
+       dpriv->timer.function = dscc4_timer;
         add_timer(&dpriv->timer);
        netif_carrier_on(dev);