aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-11-24 10:01:08 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-11-24 10:01:08 +0000
commitbe87c0dac9afe6fbfd21093cdadee97f01d6af7c (patch)
treef2f8e559ed50f52676453a052438ec37fcfe7c76
parent9df9184b94ca50df8d45a1172f2d009bb5dd28b8 (diff)
downloadupstream-be87c0dac9afe6fbfd21093cdadee97f01d6af7c.tar.gz
upstream-be87c0dac9afe6fbfd21093cdadee97f01d6af7c.tar.bz2
upstream-be87c0dac9afe6fbfd21093cdadee97f01d6af7c.zip
ramips: Remove unnecessary skb_put
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24121 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c2
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;