PASDK-577:Move local var declarations outside if()
authorFrank Livingston <frank-livingston@ti.com>
Thu, 10 May 2018 15:55:17 +0000 (10:55 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Thu, 10 May 2018 15:55:17 +0000 (10:55 -0500)
pasdk/test_dsp/framework/audioStreamOutIo.c

index a48f75826fc9c2fb64ef6bf04ebad7d1868cffd1..8b2b37f85bf7f45c8ca8892e4fd6d3f201cf948d 100644 (file)
@@ -571,12 +571,12 @@ Int asopIoCompsInit(
     PAF_AST_IoOut *pOutIo
 )
 {
+    ioBuffParams_t ioBuffParams;
+    ioPhyParams_t  ioPhyParams;
+
     if (pOutIo->hMcaspChan != NULL)
     {
         // Initialize I/O BUFF and I/O PHY components for output task
-        ioBuffParams_t ioBuffParams;
-        ioPhyParams_t  ioPhyParams;
-
         ioBuffParams.base         = pOutBuf->outBufConfig.base.pVoid;
         ioBuffParams.size         = pOutBuf->outBufConfig.allocation/STRIDE_WORST_CASE*STRIDE_WORST_CASE;
         ioBuffParams.sync         = IOBUff_READ_SYNC;