bnx2: Remove the rx_offset field from the bnx2 structure.
authorBenjamin Li <benli@broadcom.com>
Sat, 17 May 2008 05:18:57 +0000 (22:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 May 2008 05:18:57 +0000 (22:18 -0700)
commitd89cb6af41559a601e9cfe081d34de07945b0d8b
treecf6aa02b5b014eb8d6bda336ec001472792fdca8
parent6ff2da49c8a68320c2564006c94a492db58de5cd
bnx2: Remove the rx_offset field from the bnx2 structure.

The rx_offset field is set to a constant value and initialized
only once.  By replacing all references to the rx_offset field,
we can eliminate rx_offset from the bnx2 structure.  This will
save 4 bytes for every bnx2 instance.

[Added parentheses to the definition of BNX2_RX_OFFSET, as noted
by Ben Hutchings.]

Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h