[PDK-5981]DSS and CAL: Fix Static Analysis Issues REL.CORESDK.06.02.03.04
authorVivek Dhande <a0132295@ti.com>
Fri, 22 May 2020 12:31:18 +0000 (18:01 +0530)
committerVivek Dhande <a0132295@ti.com>
Fri, 22 May 2020 12:31:18 +0000 (18:01 +0530)
Signed-off-by: Vivek Dhande <a0132295@ti.com>
packages/ti/drv/cal/src/drv/cal_drvProc.c

index 39f19e11cc7c9126d577eb45fd227cdfd37db2c9..d2a938e6c905dde9013159023d958984156c2dc2 100755 (executable)
@@ -1,4 +1,4 @@
-/* 
+/*
  *  Copyright (c) Texas Instruments Incorporated 2018
  *
  *  Redistribution and use in source and binary forms, with or without
  *  Copyright (c) Texas Instruments Incorporated 2018
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -119,6 +119,8 @@ Cal_CoreFrame *calDrvCaptCoreReqFrameCb(void  *drvData,
         qObj->creditCnt++;
         coreFrm = &qObj->coreFrm;
         Fvid2Utils_queue(chObj->bmObj.curQ, &qObj->qElem, qObj);
         qObj->creditCnt++;
         coreFrm = &qObj->coreFrm;
         Fvid2Utils_queue(chObj->bmObj.curQ, &qObj->qElem, qObj);
+        GT_1trace(CalTrace, GT_DEBUG,
+              "CaptDrv: Queued buffer 0x%0.8x to core\r\n", coreFrm->addr[0]);
     }
     else
     {
     }
     else
     {
@@ -136,8 +138,10 @@ Cal_CoreFrame *calDrvCaptCoreReqFrameCb(void  *drvData,
             GT_assert(CalTrace, (NULL != qObj));
             qObj->creditCnt++;
             coreFrm = &qObj->coreFrm;
             GT_assert(CalTrace, (NULL != qObj));
             qObj->creditCnt++;
             coreFrm = &qObj->coreFrm;
+            GT_1trace(CalTrace, GT_DEBUG,
+              "CaptDrv: Queued buffer 0x%0.8x to core\r\n", coreFrm->addr[0]);
         }
         }
-        else if(CAL_CAPT_BCM_CIRCULAR_FRM_REPEAT == 
+        else if(CAL_CAPT_BCM_CIRCULAR_FRM_REPEAT ==
                 instObj->createPrms.bufCaptMode)
         {
             /*
                 instObj->createPrms.bufCaptMode)
         {
             /*
@@ -154,6 +158,8 @@ Cal_CoreFrame *calDrvCaptCoreReqFrameCb(void  *drvData,
 
             /* Queue back to the start */
             Fvid2Utils_queue(chObj->bmObj.curQ, &qObj->qElem, qObj);
 
             /* Queue back to the start */
             Fvid2Utils_queue(chObj->bmObj.curQ, &qObj->qElem, qObj);
+            GT_1trace(CalTrace, GT_DEBUG,
+              "CaptDrv: Queued buffer 0x%0.8x to core\r\n", coreFrm->addr[0]);
         }
         else
         {
         }
         else
         {
@@ -161,9 +167,6 @@ Cal_CoreFrame *calDrvCaptCoreReqFrameCb(void  *drvData,
         }
     }
 
         }
     }
 
-    GT_1trace(CalTrace, GT_DEBUG,
-              "CaptDrv: Queued buffer 0x%0.8x to core\r\n", coreFrm->addr[0]);
-
     HwiP_restore(cookie);
 
     GT_assert(CalTrace, (NULL != coreFrm));
     HwiP_restore(cookie);
 
     GT_assert(CalTrace, (NULL != coreFrm));