Skip to content

Commit

Permalink
ath5k: remove double cache alignment, ath_rxbuf_alloc() already does it
Browse files Browse the repository at this point in the history
ath5k is using the (csz - 1) twice as ath_rxbuf_alloc() already allocates
and moves skb->data accordingly. Remove the extra (csz -1).

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Nov 11, 2009
1 parent cc861f7 commit dd84978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,12 +1184,12 @@ struct sk_buff *ath5k_rx_skb_alloc(struct ath5k_softc *sc, dma_addr_t *skb_addr)
* fake physical layer header at the start.
*/
skb = ath_rxbuf_alloc(common,
common->rx_bufsize + common->cachelsz - 1,
common->rx_bufsize,
GFP_ATOMIC);

if (!skb) {
ATH5K_ERR(sc, "can't alloc skbuff of size %u\n",
common->rx_bufsize + common->cachelsz - 1);
common->rx_bufsize);
return NULL;
}

Expand Down

0 comments on commit dd84978

Please sign in to comment.