]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
NFC: digital: Return proper error code when sending ATR_REQ
authorThierry Escande <thierry.escande@linux.intel.com>
Fri, 11 Apr 2014 22:03:08 +0000 (00:03 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 25 May 2014 22:42:02 +0000 (00:42 +0200)
The error code returned by digital_in_send_cmd() was not returned by
digital_in_send_atr_req().

Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_dep.c

index d4ed25ff723fd9ace06d03444d7fcc3f9b3b6b27..171cb9949ab58560bc3d1c997d963e2928cf5aa5 100644 (file)
@@ -224,9 +224,8 @@ int digital_in_send_atr_req(struct nfc_digital_dev *ddev,
 
        ddev->skb_add_crc(skb);
 
-       digital_in_send_cmd(ddev, skb, 500, digital_in_recv_atr_res, target);
-
-       return 0;
+       return digital_in_send_cmd(ddev, skb, 500, digital_in_recv_atr_res,
+                                  target);
 }
 
 static int digital_in_send_rtox(struct nfc_digital_dev *ddev,