Misra C fixes:
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / src / edma3resmgr.c
index e3f67e1f528235eaea0c15d61b5d949ab67669e3..186d7e48499ef4a6bb5751a802f7730ba19fc4ec 100755 (executable)
@@ -5479,12 +5479,18 @@ static void edma3CCErrHandler(const EDMA3_RM_Obj *rmObj)
                             + (edma3Id*EDMA3_MAX_RM_INSTANCES)
                             + edma3RegionId);
 
-        pendingIrqs = ((ptrEdmaccRegs->EMR != 0 )
-                        || (ptrEdmaccRegs->QEMR != 0)
-                        || (ptrEdmaccRegs->CCERR != 0));
+        if((ptrEdmaccRegs->EMR != 0 )
+                || (ptrEdmaccRegs->QEMR != 0)
+                || (ptrEdmaccRegs->CCERR != 0))
+            {
+                pendingIrqs = 1U;
+            }
         if (numTCCs > 32U)
             {
-            pendingIrqs = pendingIrqs || (ptrEdmaccRegs->EMRH != 0 );
+            if((pendingIrqs != 0) || (ptrEdmaccRegs->EMRH != 0))
+               {
+                   pendingIrqs = 1U;
+               }
             }
         index = 1U;