Skip to contentSkip to conversation

bna: bnad_udelay macro cleanup

PATCH In review Rasesh Mody 2 participants 3 messages Dec 23, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bna: bnad_udelay macro cleanup

Change details:
- Removed unnecessary bnad_udelay macro for ia64

---
 drivers/net/bna/bnad.c |    4 ++--
 drivers/net/bna/bnad.h |    6 ------
 2 files changed, 2 insertions(+), 8 deletions(-)
drivers/net/bna/bnad.c +2 -2
index 277dbe0..12d1d7a 100644
@@ -925,7 +925,7 @@ bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb)
 {
 	/* Delay only once for the whole Tx Path Shutdown */
 	if (!test_and_set_bit(BNAD_RF_TX_SHUTDOWN_DELAYED, &bnad->run_flags))
-		bnad_udelay(BNAD_TXRX_SYNC_UDELAY);
+		udelay(BNAD_TXRX_SYNC_UDELAY);
 }
 
 static void
@@ -938,7 +938,7 @@ bnad_cb_rx_cleanup(struct bnad *bnad,
 		clear_bit(BNAD_RXQ_STARTED, &ccb->rcb[1]->flags);
 
 	if (!test_and_set_bit(BNAD_RF_RX_SHUTDOWN_DELAYED, &bnad->run_flags))
-		bnad_udelay(BNAD_TXRX_SYNC_UDELAY);
+		udelay(BNAD_TXRX_SYNC_UDELAY);
 }
 
 static void
drivers/net/bna/bnad.h +0 -6
index 24fd983..8b1d515 100644
@@ -336,10 +336,4 @@ extern void bnad_netdev_hwstats_fill(struct bnad *bnad,
 	(((_bnad)->cfg_flags & BNAD_CF_DIM_ENABLED) && 		\
 	(test_bit(BNAD_RF_DIM_TIMER_RUNNING, &((_bnad)->run_flags))))
 
-#if defined(__ia64__)
-#define bnad_udelay	udelay
-#else
-#define bnad_udelay	__udelay
-#endif
-
 #endif /* __BNAD_H__ */
Signature · 1 line
1.7.1
#2 lore raw
Quoted 12 lines

From: David Miller [mailto:[email protected]]
Sent: Thursday, December 23, 2010 9:38 AM

From: Rasesh Mody <[email protected]>
Date: Wed, 22 Dec 2010 23:05:49 -0800

Quoted 5 lines

Change details:
- Removed unnecessary bnad_udelay macro for ia64

Quoted 8 lines

Please don't do it this way.

We don't add known crap, then add a patch to remove the crap.

Respin your BNA patch series so that this IA64 stuff never shows up in the first place.

Thanks.

We'll respin and resubmit the patches with ia64 macro removed as per your suggestion. In future we'll take care to avoid this.

--Rasesh