diff options
author | anil.hiranniah <anil.hiranniah@nxp.com> | 2020-03-25 03:37:46 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-25 03:37:46 +0000 |
commit | 8453b0b883bdd62610a16c6638309e3f915ed7b4 (patch) | |
tree | d8db3bd5ad0dc3f3d62136befbd474821ffb18c7 | |
parent | a7f3300cd88cc520d01dac6cc65f1fe9010c5e3a (diff) | |
parent | 4abe3741ddb808486ab5d91379b8326e706303e3 (diff) | |
download | secure_element-android11-qpr1-s2-release.tar.gz |
Fix warnings from static analysis tools am: 1c9df71d7b am: 4abe3741ddandroid-11.0.0_r48android-11.0.0_r47android-11.0.0_r46android-11.0.0_r45android-11.0.0_r44android-11.0.0_r43android-11.0.0_r42android-11.0.0_r41android-11.0.0_r40android-11.0.0_r39android-11.0.0_r38android-11.0.0_r37android-11.0.0_r36android-11.0.0_r35android-11.0.0_r34android-11.0.0_r33android-11.0.0_r32android-11.0.0_r31android-11.0.0_r30android-11.0.0_r29android-11.0.0_r28android-11.0.0_r27android-11.0.0_r26android-11.0.0_r24android-11.0.0_r23android-11.0.0_r22android-11.0.0_r21android-11.0.0_r20android-11.0.0_r19android-11.0.0_r18android11-qpr3-s1-releaseandroid11-qpr3-releaseandroid11-qpr2-releaseandroid11-qpr1-s2-releaseandroid11-qpr1-s1-releaseandroid11-qpr1-releaseandroid11-qpr1-d-s1-releaseandroid11-qpr1-d-releaseandroid11-qpr1-c-releaseandroid11-d2-release
Change-Id: I4c7adc6e9c11d79f6ebb1c1b5651dfc2edca077e
-rwxr-xr-x | libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp b/libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp index 21057b6..cb2d4c5 100755 --- a/libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp +++ b/libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp @@ -89,6 +89,11 @@ void phPalEse_spi_close(void* pDevHandle) { return; } ESESTATUS phNxpEse_spiIoctl(uint64_t ioctlType, void* p_data) { + if (!p_data) { + ALOGD_IF(ese_debug_enabled, "%s:p_data is null ioctltyp: %ld", __FUNCTION__, + (long)ioctlType); + return ESESTATUS_FAILED; + } ese_nxp_IoctlInOutData_t* inpOutData = (ese_nxp_IoctlInOutData_t*)p_data; rf_status = inpOutData->inp.data.nxpCmd.p_cmd[0]; if (rf_status == 1) { @@ -99,11 +104,6 @@ ESESTATUS phNxpEse_spiIoctl(uint64_t ioctlType, void* p_data) { ese_debug_enabled, "******************RF IS OFF*************************************"); } - if (p_data != NULL) { - ALOGD_IF(ese_debug_enabled, - "halimpl phNxpEse_spiIoctl p_data is not null ioctltyp: %ld", - (long)ioctlType); - } return ESESTATUS_SUCCESS; } |