]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/usb/hso.c
net: manual clean code which call skb_put_[data:zero]
[mirror_ubuntu-artful-kernel.git] / drivers / net / usb / hso.c
index 908ada4ca21c97ac96748c16bd77b5eb2b48797e..d7a3379ea668f7b8e35102e080e41931ae1d1049 100644 (file)
@@ -861,7 +861,6 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
        unsigned short temp_bytes;
        unsigned short buffer_offset = 0;
        unsigned short frame_len;
-       unsigned char *tmp_rx_buf;
 
        /* log if needed */
        hso_dbg(0x1, "Rx %d bytes\n", count);
@@ -911,9 +910,9 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
 
                                /* Copy what we got so far. make room for iphdr
                                 * after tail. */
-                               tmp_rx_buf = skb_put_data(odev->skb_rx_buf,
-                                                         (char *)&(odev->rx_ip_hdr),
-                                                         sizeof(struct iphdr));
+                               skb_put_data(odev->skb_rx_buf,
+                                            (char *)&(odev->rx_ip_hdr),
+                                            sizeof(struct iphdr));
 
                                /* ETH_HLEN */
                                odev->rx_buf_size = sizeof(struct iphdr);
@@ -932,9 +931,9 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
                        /* Copy the rest of the bytes that are left in the
                         * buffer into the waiting sk_buf. */
                        /* Make room for temp_bytes after tail. */
-                       tmp_rx_buf = skb_put_data(odev->skb_rx_buf,
-                                                 ip_pkt + buffer_offset,
-                                                 temp_bytes);
+                       skb_put_data(odev->skb_rx_buf,
+                                    ip_pkt + buffer_offset,
+                                    temp_bytes);
 
                        odev->rx_buf_missing -= temp_bytes;
                        count -= temp_bytes;