From 46e19fb4b65c2391f52f21908af04b8aab0b5773 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 9 Oct 2011 13:02:18 -0700 Subject: [PATCH] remove obsolete code --- drivers/net/rckemac.c | 8 +------- drivers/net/rckemac.h | 5 ++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/net/rckemac.c b/drivers/net/rckemac.c index e095899c..dcedd885 100644 --- a/drivers/net/rckemac.c +++ b/drivers/net/rckemac.c @@ -626,13 +626,7 @@ err_t rckemacif_init(struct netif* netif) /* Depending on core location read own private data * (offset, subdest, route) */ - if (z == 0) { - tmp = ReadConfigReg(CRB_OWN + LUT0); - rckemacif->irq_address = (void*) (CRB_OWN + GLCFG0); - } else { - tmp = ReadConfigReg(CRB_OWN + LUT1); - rckemacif->irq_address = (void*) (CRB_OWN + GLCFG1); - } + tmp = z == 0 ? ReadConfigReg(CRB_OWN + LUT0) : ReadConfigReg(CRB_OWN + LUT1); tile_offset = (uint64_t)((uint64_t) tmp & 0x3FF) << 24; subdest = (tmp >> 10) & 0x07; route = (tmp >> 13) & 0xFF; diff --git a/drivers/net/rckemac.h b/drivers/net/rckemac.h index 38a55e51..897bb84e 100644 --- a/drivers/net/rckemac.h +++ b/drivers/net/rckemac.h @@ -37,9 +37,8 @@ typedef struct rckemacif { uint32_t rx_buffer_max; uint32_t rx_read_offset; uint8_t* tx_buffer; - uint32_t tx_buffer_max; - uint32_t tx_write_offset; - void* irq_address; + uint32_t tx_buffer_max; + uint32_t tx_write_offset; uint32_t core; uint32_t num_emac; volatile uint8_t polling;