diff options
author | Joe Perches <joe@perches.com> | 2010-08-23 14:20:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-25 18:35:43 -0400 |
commit | c061b18df0f1fe3f50fe451dbbdc9ede3c19701a (patch) | |
tree | 91508aff083ab7a93d1e7f3b6eb933059d1a2776 /drivers/net/fealnx.c | |
parent | 31018e068edb9eed740bec5cf14802c3c676c9ee (diff) |
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>
Diffstat (limited to 'drivers/net/fealnx.c')
-rw-r--r-- | drivers/net/fealnx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index d7e8f6b8f4cf..dd54abe2f710 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
@@ -915,14 +915,14 @@ static int netdev_open(struct net_device *dev) | |||
915 | init_timer(&np->timer); | 915 | init_timer(&np->timer); |
916 | np->timer.expires = RUN_AT(3 * HZ); | 916 | np->timer.expires = RUN_AT(3 * HZ); |
917 | np->timer.data = (unsigned long) dev; | 917 | np->timer.data = (unsigned long) dev; |
918 | np->timer.function = &netdev_timer; | 918 | np->timer.function = netdev_timer; |
919 | 919 | ||
920 | /* timer handler */ | 920 | /* timer handler */ |
921 | add_timer(&np->timer); | 921 | add_timer(&np->timer); |
922 | 922 | ||
923 | init_timer(&np->reset_timer); | 923 | init_timer(&np->reset_timer); |
924 | np->reset_timer.data = (unsigned long) dev; | 924 | np->reset_timer.data = (unsigned long) dev; |
925 | np->reset_timer.function = &reset_timer; | 925 | np->reset_timer.function = reset_timer; |
926 | np->reset_timer_armed = 0; | 926 | np->reset_timer_armed = 0; |
927 | 927 | ||
928 | return 0; | 928 | return 0; |