networking: make skb_put & friends return void pointers
[linux-block.git] / drivers / nfc / st21nfca / i2c.c
index 94d0b913b627fa1c9699d0f3968e7e4d832698f9..c36f0e0afdfdc0773f9506cf9008f480bd1866f7 100644 (file)
@@ -177,10 +177,10 @@ static void st21nfca_hci_add_len_crc(struct sk_buff *skb)
        crc = ~crc;
 
        tmp = crc & 0x00ff;
-       *skb_put(skb, 1) = tmp;
+       *(u8 *)skb_put(skb, 1) = tmp;
 
        tmp = (crc >> 8) & 0x00ff;
-       *skb_put(skb, 1) = tmp;
+       *(u8 *)skb_put(skb, 1) = tmp;
 }
 
 static void st21nfca_hci_remove_len_crc(struct sk_buff *skb)
@@ -214,7 +214,7 @@ static int st21nfca_hci_i2c_write(void *phy_id, struct sk_buff *skb)
        st21nfca_hci_add_len_crc(skb);
 
        /* add ST21NFCA_SOF_EOF on tail */
-       *skb_put(skb, 1) = ST21NFCA_SOF_EOF;
+       *(u8 *)skb_put(skb, 1) = ST21NFCA_SOF_EOF;
        /* add ST21NFCA_SOF_EOF on head */
        *skb_push(skb, 1) = ST21NFCA_SOF_EOF;