summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-10-10 09:46:10 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-10-11 17:05:13 +0200
commit7e5028d7e663b8cf984f77d51857d47621561e0f (patch)
tree28518720683144527e2c58f411d80d6b119aeeaf
parentf7694d84143946e9442bec8a231225e7c3678238 (diff)
downloadneard-7e5028d7e663b8cf984f77d51857d47621561e0f.tar.gz
neard-7e5028d7e663b8cf984f77d51857d47621561e0f.tar.bz2
neard-7e5028d7e663b8cf984f77d51857d47621561e0f.zip
nfctype1: Remove dead code from nfctype1_write
This was never called and cb will be called by data_write in case of failure so 'return data_write()' is OK.
-rw-r--r--plugins/nfctype1.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/nfctype1.c b/plugins/nfctype1.c
index 649081c..e2cb93b 100644
--- a/plugins/nfctype1.c
+++ b/plugins/nfctype1.c
@@ -629,11 +629,6 @@ static int nfctype1_write(uint32_t adapter_idx, uint32_t target_idx,
return data_write(adapter_idx, target_idx, ndef, cb);
- if (err < 0)
- goto out_err;
-
- return 0;
-
out_err:
if (cb)
cb(adapter_idx, target_idx, err);