-static void ag71xx_rx_align_skb(struct ag71xx *ag, struct sk_buff *skb, int len)
-{
- int offset = ((unsigned long) skb->data) % 4;
- void *data;
-
- if (offset == 2)
- return;
-
- if (ag->phy_dev && ag->phy_dev->pkt_align != 0)
- return;
-
- if (len > 128)
- return;
-
- if (WARN_ON(skb_headroom(skb) < 2))
- return;
-
- data = skb->data;
- skb->data -= 2;
- memmove(skb->data, data, len);
-}
-