networking: introduce and use skb_put_data()
[linux-block.git] / drivers / net / wireless / marvell / libertas / if_sdio.c
index e0196208ab0d57bb0b2cfecf38382bfba0ec2838..a9e2b06b3175c299a0757775a121cb13caabfdb5 100644 (file)
@@ -256,9 +256,7 @@ static int if_sdio_handle_data(struct if_sdio_card *card,
 
        skb_reserve(skb, NET_IP_ALIGN);
 
-       data = skb_put(skb, size);
-
-       memcpy(data, buffer, size);
+       data = skb_put_data(skb, buffer, size);
 
        lbs_process_rxed_packet(card->priv, skb);