]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/nfc/port100.c
networking: make skb_put & friends return void pointers
[mirror_ubuntu-artful-kernel.git] / drivers / nfc / port100.c
index e1260da73d45981e84ba9c2e29bb5a103d7589bd..5fa3cf0fabd6cca533860bc65faea25714f3a173 100644 (file)
@@ -991,7 +991,7 @@ static int port100_set_command_type(struct port100 *dev, u8 command_type)
        if (!skb)
                return -ENOMEM;
 
-       *skb_put(skb, sizeof(u8)) = command_type;
+       *(u8 *)skb_put(skb, sizeof(u8)) = command_type;
 
        resp = port100_send_cmd_sync(dev, PORT100_CMD_SET_COMMAND_TYPE, skb);
        if (IS_ERR(resp))
@@ -1059,7 +1059,7 @@ static int port100_switch_rf(struct nfc_digital_dev *ddev, bool on)
        if (!skb)
                return -ENOMEM;
 
-       *skb_put(skb, 1) = on ? 1 : 0;
+       *(u8 *)skb_put(skb, 1) = on ? 1 : 0;
 
        /* Cancel the last command if the device is being switched off */
        if (!on)