]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drivers/net: Remove address use from assignments of function pointers
authorJoe Perches <joe@perches.com>
Mon, 23 Aug 2010 18:20:03 +0000 (18:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2010 22:35:43 +0000 (15:35 -0700)
commitc061b18df0f1fe3f50fe451dbbdc9ede3c19701a
tree91508aff083ab7a93d1e7f3b6eb933059d1a2776
parent31018e068edb9eed740bec5cf14802c3c676c9ee
drivers/net: Remove address use from assignments of function pointers

"foo = &function" is more commonly written "foo = function"

Done with coccinelle script:

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

f(...) { ... }

@@
identifier r.f;
@@

- &f
+ f
// </smpl>

drivers/net/tehuti.c used a function and struct with the
same name, the function was renamed.

Compile tested x86 only.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
49 files changed:
drivers/net/3c503.c
drivers/net/3c515.c
drivers/net/3c59x.c
drivers/net/atl1e/atl1e_main.c
drivers/net/atlx/atl1.c
drivers/net/atlx/atl2.c
drivers/net/atp.c
drivers/net/bcm63xx_enet.c
drivers/net/cpmac.c
drivers/net/declance.c
drivers/net/dl2k.c
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/netdev.c
drivers/net/ehea/ehea_main.c
drivers/net/epic100.c
drivers/net/fealnx.c
drivers/net/forcedeth.c
drivers/net/hamachi.c
drivers/net/hp.c
drivers/net/hydra.c
drivers/net/igb/igb_main.c
drivers/net/ioc3-eth.c
drivers/net/ixgb/ixgb_main.c
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbevf/ixgbevf_main.c
drivers/net/mac8390.c
drivers/net/natsemi.c
drivers/net/pci-skeleton.c
drivers/net/pcmcia/3c574_cs.c
drivers/net/pcmcia/3c589_cs.c
drivers/net/pcmcia/axnet_cs.c
drivers/net/pcmcia/pcnet_cs.c
drivers/net/pcmcia/smc91c92_cs.c
drivers/net/rrunner.c
drivers/net/sh_eth.c
drivers/net/sis900.c
drivers/net/sunbmac.c
drivers/net/sundance.c
drivers/net/sunhme.c
drivers/net/sunlance.c
drivers/net/tehuti.c
drivers/net/tlan.c
drivers/net/tulip/dmfe.c
drivers/net/tulip/uli526x.c
drivers/net/tulip/winbond-840.c
drivers/net/wan/lmc/lmc_main.c
drivers/net/wd.c
drivers/net/wireless/ray_cs.c
drivers/net/yellowfin.c