projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7694d8
)
nfctype1: Remove dead code from nfctype1_write
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 10 Oct 2013 07:46:10 +0000
(09:46 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 11 Oct 2013 15:05:13 +0000
(17:05 +0200)
This was never called and cb will be called by data_write in case of
failure so 'return data_write()' is OK.
plugins/nfctype1.c
patch
|
blob
|
history
diff --git
a/plugins/nfctype1.c
b/plugins/nfctype1.c
index
649081c
..
e2cb93b
100644
(file)
--- 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);