[NFC] - fixing errors reported by prevent
authorAndrzej Popowski <a.popowski@samsung.com>
Tue, 9 Jun 2015 10:23:17 +0000 (12:23 +0200)
committerAndrzej Popowski <a.popowski@samsung.com>
Tue, 9 Jun 2015 10:23:17 +0000 (12:23 +0200)
Change-Id: I9cccbd853a6eacfd7a073c6b68d9d23eb86d9fcb
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/nfc/nfc_adapter.cc
src/nfc/nfc_util.cc

index 75b13ae..5dbb7bf 100644 (file)
@@ -1020,6 +1020,7 @@ static void tagReadNDEFCb(nfc_error_e result,
   if(!data) {
     // Can not continue if unable to get callbackId
     LoggerE("NULL callback id given");
+    return;
   }
 
   double callbackId = *((double*)data);
index 6837bcf..11d0e8c 100644 (file)
@@ -221,6 +221,7 @@ PlatformResult NFCUtil::ToNfcTagString(const std::string& type_string, nfc_tag_t
   else {
     return PlatformResult(ErrorCode::TYPE_MISMATCH_ERR, "No Match Tag Type");
   }
+  return PlatformResult(ErrorCode::NO_ERROR);
 }
 
 PlatformResult NFCUtil::ToStringCardEmulationMode(