diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-11-24 10:01:08 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-11-24 10:01:08 +0000 |
commit | c6e41248559f16cf8ab1115305b8ef5f41a8af81 (patch) | |
tree | d24a9802935178402ca5313f8060445cecf42fe7 /target/linux/ramips/files/drivers | |
parent | f21c0cacf85b01b954a4eab07c3e5c183c4c354d (diff) | |
download | upstream-c6e41248559f16cf8ab1115305b8ef5f41a8af81.tar.gz upstream-c6e41248559f16cf8ab1115305b8ef5f41a8af81.tar.bz2 upstream-c6e41248559f16cf8ab1115305b8ef5f41a8af81.zip |
ramips: Remove unnecessary skb_put
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 24121
Diffstat (limited to 'target/linux/ramips/files/drivers')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index fb6e6e84ef..e297cbec75 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -176,7 +176,7 @@ ramips_alloc_dma(struct raeth_priv *re) skb_reserve(new_skb, 2); re->rx[i].rxd1 = dma_map_single(NULL, - skb_put(new_skb, 2), + new_skb->data, MAX_RX_LENGTH + 2, DMA_FROM_DEVICE); re->rx[i].rxd2 |= RX_DMA_LSO; |