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

index b4909a2dec66bfb4e9835cf0223654cafcebc347..92e2bbe6b49b83236226214c84b7aea45f6480ec 100644 (file)
@@ -1161,7 +1161,7 @@ static int smsc9420_mii_probe(struct net_device *dev)
                phydev->phy_id);
 
        phydev = phy_connect(dev, dev_name(&phydev->dev),
-               &smsc9420_phy_adjust_link, 0, PHY_INTERFACE_MODE_MII);
+               smsc9420_phy_adjust_link, 0, PHY_INTERFACE_MODE_MII);
 
        if (IS_ERR(phydev)) {
                pr_err("%s: Could not attach to PHY\n", dev->name);