Use dereferenced pointer in sizeof instead of pointer itself.
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
 
        nfc_dev_dbg(&dev->interface->dev, "Sending command 0x%x", cmd_code);
 
-       arg = kzalloc(sizeof(arg), GFP_KERNEL);
+       arg = kzalloc(sizeof(*arg), GFP_KERNEL);
        if (!arg)
                return -ENOMEM;
 
        if (!resp)
                return -ENOMEM;
 
-       arg = kzalloc(sizeof(arg), GFP_KERNEL);
+       arg = kzalloc(sizeof(*arg), GFP_KERNEL);
        if (!arg) {
                dev_kfree_skb(resp);
                return -ENOMEM;