From: Rasesh Mody <rmody@brocade.com>
To: <netdev@vger.kernel.org>
Cc: Rasesh Mody <rmody@brocade.com>, Debashis Dutt <ddutt@brocade.com>
Subject: [PATCH] bna: bnad_udelay macro cleanup
Date: Wed, 22 Dec 2010 23:05:49 -0800 [thread overview]
Message-ID: <1293087949-17613-1-git-send-email-rmody@brocade.com> (raw)
Change details:
- Removed unnecessary bnad_udelay macro for ia64
Signed-off-by: Debashis Dutt <ddutt@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
---
drivers/net/bna/bnad.c | 4 ++--
drivers/net/bna/bnad.h | 6 ------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/net/bna/bnad.c b/drivers/net/bna/bnad.c
index 277dbe0..12d1d7a 100644
--- a/drivers/net/bna/bnad.c
+++ b/drivers/net/bna/bnad.c
@@ -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
diff --git a/drivers/net/bna/bnad.h b/drivers/net/bna/bnad.h
index 24fd983..8b1d515 100644
--- a/drivers/net/bna/bnad.h
+++ b/drivers/net/bna/bnad.h
@@ -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__ */
--
1.7.1
next reply other threads:[~2010-12-23 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-23 7:05 Rasesh Mody [this message]
2010-12-23 17:38 ` [PATCH] bna: bnad_udelay macro cleanup David Miller
2010-12-23 18:00 ` Rasesh Mody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1293087949-17613-1-git-send-email-rmody@brocade.com \
--to=rmody@brocade.com \
--cc=ddutt@brocade.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox