diff options
author | Thierry Escande <thierry.escande@linux.intel.com> | 2014-04-12 02:03:08 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-05-26 02:42:02 +0400 |
commit | 00e625df3ef6c3ce94ed6fc46565b41f55e379f8 (patch) | |
tree | 3999edf1b424f4c8ee1aa0df4a3914adc64246d0 /net/nfc | |
parent | 09592ccfc2fc38eedd63f0f50fda095e1083b657 (diff) | |
download | linux-00e625df3ef6c3ce94ed6fc46565b41f55e379f8.tar.xz |
NFC: digital: Return proper error code when sending ATR_REQ
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>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/digital_dep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/nfc/digital_dep.c b/net/nfc/digital_dep.c index d4ed25ff723f..171cb9949ab5 100644 --- a/net/nfc/digital_dep.c +++ b/net/nfc/digital_dep.c @@ -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, |