networking: make skb_put & friends return void pointers
[linux-2.6-microblaze.git] / drivers / atm / atmtcp.c
index 3ef6253..56fa16c 100644 (file)
@@ -60,7 +60,7 @@ static int atmtcp_send_control(struct atm_vcc *vcc,int type,
                return -EUNATCH;
        }
        atm_force_charge(out_vcc,skb->truesize);
-       new_msg = (struct atmtcp_control *) skb_put(skb,sizeof(*new_msg));
+       new_msg = skb_put(skb, sizeof(*new_msg));
        *new_msg = *msg;
        new_msg->hdr.length = ATMTCP_HDR_MAGIC;
        new_msg->type = type;
@@ -217,7 +217,7 @@ static int atmtcp_v_send(struct atm_vcc *vcc,struct sk_buff *skb)
                atomic_inc(&vcc->stats->tx_err);
                return -ENOBUFS;
        }
-       hdr = (void *) skb_put(new_skb,sizeof(struct atmtcp_hdr));
+       hdr = skb_put(new_skb, sizeof(struct atmtcp_hdr));
        hdr->vpi = htons(vcc->vpi);
        hdr->vci = htons(vcc->vci);
        hdr->length = htonl(skb->len);