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>
Šī revīzija ir iekļauta:

revīziju iesūtīja
David S. Miller

vecāks
31018e068e
revīzija
c061b18df0
@@ -1570,7 +1570,7 @@ static int netdev_open(struct net_device *dev)
|
||||
init_timer(&np->timer);
|
||||
np->timer.expires = round_jiffies(jiffies + NATSEMI_TIMER_FREQ);
|
||||
np->timer.data = (unsigned long)dev;
|
||||
np->timer.function = &netdev_timer; /* timer handler */
|
||||
np->timer.function = netdev_timer; /* timer handler */
|
||||
add_timer(&np->timer);
|
||||
|
||||
return 0;
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user