diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-10-10 09:46:10 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-10-11 17:05:13 +0200 |
commit | 7e5028d7e663b8cf984f77d51857d47621561e0f (patch) | |
tree | 28518720683144527e2c58f411d80d6b119aeeaf | |
parent | f7694d84143946e9442bec8a231225e7c3678238 (diff) | |
download | neard-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.c | 5 |
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); |