]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/net/usb/gl620a.c
networking: make skb_push & __skb_push return void pointers
[mirror_ubuntu-hirsute-kernel.git] / drivers / net / usb / gl620a.c
index 1cc24e6f23e2528150a3e9a660e134732e5cd988..ba1ce1006c4f02614c227d066745ecf2ef616899 100644 (file)
@@ -121,8 +121,7 @@ static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
                if (gl_skb) {
 
                        // copy the packet data to the new skb
-                       memcpy(skb_put(gl_skb, size),
-                                       packet->packet_data, size);
+                       skb_put_data(gl_skb, packet->packet_data, size);
                        usbnet_skb_return(dev, gl_skb);
                }
 
@@ -175,7 +174,7 @@ genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags)
        }
 
        // attach the packet count to the header
-       packet_count = (__le32 *) skb_push(skb, (4 + 4*1));
+       packet_count = skb_push(skb, (4 + 4 * 1));
        packet_len = packet_count + 1;
 
        *packet_count = cpu_to_le32(1);