Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291130
b: refs/heads/master
c: 6a01f0c
h: refs/heads/master
v: v3
  • Loading branch information
Mohammed Shafi Shajakhan authored and John W. Linville committed Mar 5, 2012
1 parent c079115 commit 131b3f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: d53c74e5a124b0aaed7e9b5c462d1806aad54757
refs/heads/master: 6a01f0c08d20a2b1356c1cb90ef97a0dc412b64c
9 changes: 2 additions & 7 deletions trunk/drivers/net/wireless/ath/ath9k/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,17 @@ static void ath_rx_addbuffer_edma(struct ath_softc *sc,
enum ath9k_rx_qtype qtype, int size)
{
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
u32 nbuf = 0;
struct ath_buf *bf, *tbf;

if (list_empty(&sc->rx.rxbuf)) {
ath_dbg(common, QUEUE, "No free rx buf available\n");
return;
}

while (!list_empty(&sc->rx.rxbuf)) {
nbuf++;

list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list)
if (!ath_rx_edma_buf_link(sc, qtype))
break;

if (nbuf >= size)
break;
}
}

static void ath_rx_remove_buffer(struct ath_softc *sc,
Expand Down

0 comments on commit 131b3f9

Please sign in to comment.