summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTinku Mannan2018-07-06 12:51:44 -0500
committerTinku Mannan2018-07-06 12:51:44 -0500
commita58d97bb1b1ca19d5776a172c576a966e87fa509 (patch)
tree81187ea0255b5e544d73b87aba93267795295be4
parent6480c6063865e4dd34313cc8ec9956efcf328a02 (diff)
downloadpruss-lld-a58d97bb1b1ca19d5776a172c576a966e87fa509.tar.gz
pruss-lld-a58d97bb1b1ca19d5776a172c576a966e87fa509.tar.xz
pruss-lld-a58d97bb1b1ca19d5776a172c576a966e87fa509.zip
Misra-c warnings cleanup
-rw-r--r--src/pruicss_intc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pruicss_intc.c b/src/pruicss_intc.c
index 95a4ac6..f2ccc1b 100644
--- a/src/pruicss_intc.c
+++ b/src/pruicss_intc.c
@@ -298,7 +298,10 @@ int32_t PRUICSS_registerIrqHandler(PRUICSS_Handle handle,
298 298
299 if ((hwiHandle == NULL) && (ret_val == PRUICSS_RETURN_SUCCESS)) 299 if ((hwiHandle == NULL) && (ret_val == PRUICSS_RETURN_SUCCESS))
300 { 300 {
301 PRUICSS_osalDeleteBlockingLock(semHandle); 301 if(NULL != semHandle)
302 {
303 PRUICSS_osalDeleteBlockingLock(semHandle);
304 }
302 ret_val = PRUICSS_RETURN_FAILURE; 305 ret_val = PRUICSS_RETURN_FAILURE;
303 } 306 }
304 307
@@ -400,7 +403,10 @@ int32_t PRUICSS_registerIrqHandler2(PRUICSS_Handle handle,
400 403
401 if ((hwiHandle == NULL) && (ret_val == PRUICSS_RETURN_SUCCESS)) 404 if ((hwiHandle == NULL) && (ret_val == PRUICSS_RETURN_SUCCESS))
402 { 405 {
403 PRUICSS_osalDeleteBlockingLock(semHandle); 406 if(NULL != semHandle)
407 {
408 PRUICSS_osalDeleteBlockingLock(semHandle);
409 }
404 ret_val = PRUICSS_RETURN_FAILURE; 410 ret_val = PRUICSS_RETURN_FAILURE;
405 } 411 }
406 412