]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/bluetooth/dtl1_cs.c
networking: make skb_put & friends return void pointers
[mirror_ubuntu-artful-kernel.git] / drivers / bluetooth / dtl1_cs.c
index 6317c6f323bf1d63ec4960254cca20150c2c0974..6c5a3aa566a4d9cfb11b7d61c26897d0d59e5637 100644 (file)
@@ -226,7 +226,7 @@ static void dtl1_receive(struct dtl1_info *info)
                        }
                }
 
-               *skb_put(info->rx_skb, 1) = inb(iobase + UART_RX);
+               *(u8 *)skb_put(info->rx_skb, 1) = inb(iobase + UART_RX);
                nsh = (struct nsh *)info->rx_skb->data;
 
                info->rx_count--;
@@ -414,7 +414,7 @@ static int dtl1_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
        skb_reserve(s, NSHL);
        skb_copy_from_linear_data(skb, skb_put(s, skb->len), skb->len);
        if (skb->len & 0x0001)
-               *skb_put(s, 1) = 0;     /* PAD */
+               *(u8 *)skb_put(s, 1) = 0;       /* PAD */
 
        /* Prepend skb with Nokia frame header and queue */
        memcpy(skb_push(s, NSHL), &nsh, NSHL);