summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorBenjamin Li <benli@broadcom.com>2008-09-19 01:40:49 +0200
committerDavid S. Miller <davem@davemloft.net>2008-09-19 01:40:49 +0200
commitac392abce936d78f7b731d90bfbc1001ddb446ea (patch)
treea5ed2bc8da59aa34748b418365496baf442d9521 /drivers/net/bnx2.h
parentbnx2: Remove name field from bnx2 structure (diff)
downloadlinux-ac392abce936d78f7b731d90bfbc1001ddb446ea.tar.xz
linux-ac392abce936d78f7b731d90bfbc1001ddb446ea.zip
bnx2: Remove timer_interval field from the bnx2 structure
The timer_interval field is only assigned once, and never reassigned. We can safely replace all instances of the timer_interval with a constant value. Signed-off-by: Benjamin Li <benli@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Acked-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index cb47c98ddd71..682b8f077529 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6654,6 +6654,8 @@ struct bnx2_napi {
struct bnx2_tx_ring_info tx_ring;
};
+#define BNX2_TIMER_INTERVAL HZ
+
struct bnx2 {
/* Fields used in the tx and intr/napi performance paths are grouped */
/* together in the beginning of the structure. */
@@ -6701,7 +6703,6 @@ struct bnx2 {
/* End of fields used in the performance code paths. */
- int timer_interval;
int current_interval;
struct timer_list timer;
struct work_struct reset_task;