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:
e63e98d
)
nfctype1: Remove duplicate tag read-only check
author
Ravi kumar Veeramally
<ravikumar.veeramally@linux.intel.com>
Tue, 26 Jun 2012 14:50:43 +0000
(17:50 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 26 Jun 2012 23:33:57 +0000
(
01:33
+0200)
Tag read-only check while writing is added in tag.c.
So remove duplicate call from plugin.
plugins/nfctype1.c
patch
|
blob
|
history
diff --git
a/plugins/nfctype1.c
b/plugins/nfctype1.c
index
7e84398
..
dc56171
100644
(file)
--- a/
plugins/nfctype1.c
+++ b/
plugins/nfctype1.c
@@
-592,11
+592,6
@@
static int nfctype1_write(uint32_t adapter_idx, uint32_t target_idx,
if (tag == NULL)
return -EINVAL;
- if (near_tag_get_ro(tag) == TRUE) {
- DBG("tag is read-only");
- return -EPERM;
- }
-
/* This check is valid for only static tags.
* Max data length on Type 2 Tag including TLV's
* is TYPE1_STATIC_MAX_DATA_SIZE */