Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249064
b: refs/heads/master
c: e756910
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Apr 20, 2011
1 parent 045cbad commit 39baf52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 877a344b28b51b695d6baaeecb15d0eb6c90daef
refs/heads/master: e756910059068f2b247fb8aa6e37e5685b85a0ea
20 changes: 0 additions & 20 deletions trunk/drivers/staging/sbe-2t3e3/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,6 @@ u32 dc_init_descriptor_list(struct channel *sc)
sc->ether.tx_ring = kzalloc(SBE_2T3E3_TX_DESC_RING_SIZE *
sizeof(t3e3_tx_desc_t), GFP_KERNEL);
if (sc->ether.tx_ring == NULL) {
#ifdef T3E3_USE_CONTIGMALLOC
t3e3_contigmemory_size = SBE_2T3E3_RX_DESC_RING_SIZE *
sizeof(t3e3_rx_desc_t);
#endif
kfree(sc->ether.rx_ring);
sc->ether.rx_ring = NULL;
dev_err(&sc->pdev->dev, "SBE 2T3E3: no buffer space for RX ring\n");
Expand All @@ -366,16 +362,8 @@ u32 dc_init_descriptor_list(struct channel *sc)
dev_kfree_skb_any(sc->ether.rx_data[j]);
sc->ether.rx_data[j] = NULL;
}
#ifdef T3E3_USE_CONTIGMALLOC
t3e3_contigmemory_size = SBE_2T3E3_RX_DESC_RING_SIZE *
sizeof(t3e3_rx_desc_t);
#endif
kfree(sc->ether.rx_ring);
sc->ether.rx_ring = NULL;
#ifdef T3E3_USE_CONTIGMALLOC
t3e3_contigmemory_size = SBE_2T3E3_TX_DESC_RING_SIZE *
sizeof(t3e3_tx_desc_t);
#endif
kfree(sc->ether.tx_ring);
sc->ether.tx_ring = NULL;
dev_err(&sc->pdev->dev, "SBE 2T3E3: token_alloc err:"
Expand Down Expand Up @@ -455,19 +443,11 @@ void dc_drop_descriptor_list(struct channel *sc)
}

if (sc->ether.rx_ring != NULL) {
#ifdef T3E3_USE_CONTIGMALLOC
t3e3_contigmemory_size = SBE_2T3E3_RX_DESC_RING_SIZE *
sizeof(t3e3_rx_desc_t);
#endif
kfree(sc->ether.rx_ring);
sc->ether.rx_ring = NULL;
}

if (sc->ether.tx_ring != NULL) {
#ifdef T3E3_USE_CONTIGMALLOC
t3e3_contigmemory_size = SBE_2T3E3_TX_DESC_RING_SIZE *
sizeof(t3e3_tx_desc_t);
#endif
kfree(sc->ether.tx_ring);
sc->ether.tx_ring = NULL;
}
Expand Down

0 comments on commit 39baf52

Please sign in to comment.