diff options
author | Benjamin Li <benli@broadcom.com> | 2008-09-18 19:40:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-18 19:40:49 -0400 |
commit | ac392abce936d78f7b731d90bfbc1001ddb446ea (patch) | |
tree | a5ed2bc8da59aa34748b418365496baf442d9521 /drivers/net/bnx2.h | |
parent | fbbf68b7f88953a9c56b7a7b4019fa5212987b34 (diff) |
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.h | 3 |
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 { | |||
6654 | struct bnx2_tx_ring_info tx_ring; | 6654 | struct bnx2_tx_ring_info tx_ring; |
6655 | }; | 6655 | }; |
6656 | 6656 | ||
6657 | #define BNX2_TIMER_INTERVAL HZ | ||
6658 | |||
6657 | struct bnx2 { | 6659 | struct bnx2 { |
6658 | /* Fields used in the tx and intr/napi performance paths are grouped */ | 6660 | /* Fields used in the tx and intr/napi performance paths are grouped */ |
6659 | /* together in the beginning of the structure. */ | 6661 | /* together in the beginning of the structure. */ |
@@ -6701,7 +6703,6 @@ struct bnx2 { | |||
6701 | 6703 | ||
6702 | /* End of fields used in the performance code paths. */ | 6704 | /* End of fields used in the performance code paths. */ |
6703 | 6705 | ||
6704 | int timer_interval; | ||
6705 | int current_interval; | 6706 | int current_interval; |
6706 | struct timer_list timer; | 6707 | struct timer_list timer; |
6707 | struct work_struct reset_task; | 6708 | struct work_struct reset_task; |