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>
This commit is contained in:
committed by
David S. Miller
parent
31018e068e
commit
c061b18df0
@@ -393,7 +393,7 @@ TLan_SetTimer( struct net_device *dev, u32 ticks, u32 type )
|
||||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
return;
|
||||
}
|
||||
priv->timer.function = &TLan_Timer;
|
||||
priv->timer.function = TLan_Timer;
|
||||
if (!in_irq())
|
||||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
|
||||
@@ -1453,7 +1453,7 @@ static u32 TLan_HandleTxEOF( struct net_device *dev, u16 host_int )
|
||||
TLan_DioWrite8( dev->base_addr,
|
||||
TLAN_LED_REG, TLAN_LED_LINK | TLAN_LED_ACT );
|
||||
if ( priv->timer.function == NULL ) {
|
||||
priv->timer.function = &TLan_Timer;
|
||||
priv->timer.function = TLan_Timer;
|
||||
priv->timer.data = (unsigned long) dev;
|
||||
priv->timer.expires = jiffies + TLAN_TIMER_ACT_DELAY;
|
||||
priv->timerSetAt = jiffies;
|
||||
@@ -1601,7 +1601,7 @@ drop_and_reuse:
|
||||
TLan_DioWrite8( dev->base_addr,
|
||||
TLAN_LED_REG, TLAN_LED_LINK | TLAN_LED_ACT );
|
||||
if ( priv->timer.function == NULL ) {
|
||||
priv->timer.function = &TLan_Timer;
|
||||
priv->timer.function = TLan_Timer;
|
||||
priv->timer.data = (unsigned long) dev;
|
||||
priv->timer.expires = jiffies + TLAN_TIMER_ACT_DELAY;
|
||||
priv->timerSetAt = jiffies;
|
||||
@@ -1897,7 +1897,7 @@ static void TLan_Timer( unsigned long data )
|
||||
TLan_DioWrite8( dev->base_addr,
|
||||
TLAN_LED_REG, TLAN_LED_LINK );
|
||||
} else {
|
||||
priv->timer.function = &TLan_Timer;
|
||||
priv->timer.function = TLan_Timer;
|
||||
priv->timer.expires = priv->timerSetAt
|
||||
+ TLAN_TIMER_ACT_DELAY;
|
||||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
|
Reference in New Issue
Block a user