diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-14 13:08:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-14 21:57:11 +0300 |
commit | 29ba877e7c8092a4dd3cbef80cca4e857129ca55 (patch) | |
tree | d1b6cc4b86b18b116813bcb602a57730eb54aaa5 /drivers/net/ethernet/broadcom/bgmac.h | |
parent | 4668ae1fbcab89af5ffbb161d4c70b25ce4c50f4 (diff) | |
download | linux-29ba877e7c8092a4dd3cbef80cca4e857129ca55.tar.xz |
bgmac: drop ring->num_slots
The ring size is always known at compile time, so make the code a bit
more efficient
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bgmac.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bgmac.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h index e45e303ebc22..db27febbb215 100644 --- a/drivers/net/ethernet/broadcom/bgmac.h +++ b/drivers/net/ethernet/broadcom/bgmac.h @@ -419,11 +419,10 @@ struct bgmac_dma_ring { u32 start; u32 end; - u16 num_slots; - u16 mmio_base; struct bgmac_dma_desc *cpu_base; dma_addr_t dma_base; u32 index_base; /* Used for unaligned rings only, otherwise 0 */ + u16 mmio_base; bool unaligned; struct bgmac_slot_info slots[BGMAC_RX_RING_SLOTS]; |