diff options
author | Benjamin Li <benli@broadcom.com> | 2008-09-19 03:40:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-19 03:40:49 +0400 |
commit | ac392abce936d78f7b731d90bfbc1001ddb446ea (patch) | |
tree | a5ed2bc8da59aa34748b418365496baf442d9521 /drivers/net/bnx2.h | |
parent | fbbf68b7f88953a9c56b7a7b4019fa5212987b34 (diff) | |
download | linux-ac392abce936d78f7b731d90bfbc1001ddb446ea.tar.xz |
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 { 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; |