Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[linux-2.6-microblaze.git] / drivers / bluetooth / btmrvl_main.c
index fe850f0..b280d46 100644 (file)
@@ -189,12 +189,12 @@ static int btmrvl_send_sync_cmd(struct btmrvl_private *priv, u16 opcode,
                return -ENOMEM;
        }
 
-       hdr = (struct hci_command_hdr *)skb_put(skb, HCI_COMMAND_HDR_SIZE);
+       hdr = skb_put(skb, HCI_COMMAND_HDR_SIZE);
        hdr->opcode = cpu_to_le16(opcode);
        hdr->plen = len;
 
        if (len)
-               memcpy(skb_put(skb, len), param, len);
+               skb_put_data(skb, param, len);
 
        hci_skb_pkt_type(skb) = MRVL_VENDOR_PKT;