From: Ravi kumar Veeramally Date: Tue, 26 Jun 2012 14:50:44 +0000 (+0300) Subject: nfctype2: Remove duplicate tag read-only check X-Git-Tag: 0.5~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3cb30185d13c0ec7a0b4221b431ca61eb3204e0;p=platform%2Fupstream%2Fneard.git nfctype2: Remove duplicate tag read-only check Tag read-only check while writing is added in tag.c. So remove duplicate check from plugin. --- diff --git a/plugins/nfctype2.c b/plugins/nfctype2.c index a08e804..2b535b2 100644 --- a/plugins/nfctype2.c +++ b/plugins/nfctype2.c @@ -407,11 +407,6 @@ static int nfctype2_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; - } - tgt_subtype = near_tag_get_subtype(adapter_idx, target_idx); if (tgt_subtype != NEAR_TAG_NFC_T2_MIFARE_ULTRALIGHT) {