diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-11-04 12:44:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 17:09:08 -0500 |
commit | dd849782a7388e091e356373a744f8b7ae97188a (patch) | |
tree | 224e7c2e4b0c7d042983b0a9f762b53e8a09f5bd /drivers/net/wireless/ath | |
parent | cc861f7468724e66567baf087b4e413e91b18150 (diff) |
ath5k: remove double cache alignment, ath_rxbuf_alloc() already does it
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index f1a7c77c0f8d..4cefd9e85dd4 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -1184,12 +1184,12 @@ struct sk_buff *ath5k_rx_skb_alloc(struct ath5k_softc *sc, dma_addr_t *skb_addr) | |||
1184 | * fake physical layer header at the start. | 1184 | * fake physical layer header at the start. |
1185 | */ | 1185 | */ |
1186 | skb = ath_rxbuf_alloc(common, | 1186 | skb = ath_rxbuf_alloc(common, |
1187 | common->rx_bufsize + common->cachelsz - 1, | 1187 | common->rx_bufsize, |
1188 | GFP_ATOMIC); | 1188 | GFP_ATOMIC); |
1189 | 1189 | ||
1190 | if (!skb) { | 1190 | if (!skb) { |
1191 | ATH5K_ERR(sc, "can't alloc skbuff of size %u\n", | 1191 | ATH5K_ERR(sc, "can't alloc skbuff of size %u\n", |
1192 | common->rx_bufsize + common->cachelsz - 1); | 1192 | common->rx_bufsize); |
1193 | return NULL; | 1193 | return NULL; |
1194 | } | 1194 | } |
1195 | 1195 | ||