aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-04-16 19:37:32 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-05-22 14:12:55 -0400
commitc03571a3e22b821e5be7bda7b166c4554770f489 (patch)
tree5e7b2a81e83b992fdc96a51f9edc27e7959b0dd8
parentc73d2589b784098b2bb6e986c1a7b04e9555fbd3 (diff)
via-velocity: use memmove
Use memmove to handle overlapping copy of data. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/net/via-velocity.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index 3e94c8fff9e2..bcbf2fa9b94a 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -1527,12 +1527,8 @@ static int velocity_rx_copy(struct sk_buff **rx_skb, int pkt_size,
1527static inline void velocity_iph_realign(struct velocity_info *vptr, 1527static inline void velocity_iph_realign(struct velocity_info *vptr,
1528 struct sk_buff *skb, int pkt_size) 1528 struct sk_buff *skb, int pkt_size)
1529{ 1529{
1530 /* FIXME - memmove ? */
1531 if (vptr->flags & VELOCITY_FLAGS_IP_ALIGN) { 1530 if (vptr->flags & VELOCITY_FLAGS_IP_ALIGN) {
1532 int i; 1531 memmove(skb->data + 2, skb->data, pkt_size);
1533
1534 for (i = pkt_size; i >= 0; i--)
1535 *(skb->data + i + 2) = *(skb->data + i);
1536 skb_reserve(skb, 2); 1532 skb_reserve(skb, 2);
1537 } 1533 }
1538} 1534}