nfctype3: Remove duplicate tag read-only check
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Tue, 26 Jun 2012 14:50:45 +0000 (17:50 +0300)
committerSamuel 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 check from plugin.

plugins/nfctype3.c

index 1c99a49..ba829ae 100644 (file)
@@ -616,11 +616,6 @@ static int nfctype3_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;
-       }
-
        return data_write(adapter_idx, target_idx, ndef, tag, cb);
 }