comparison gsm-fw/gpf/osl/os_com_fl.c @ 473:658b141a1600

os_com_fl.c: small buglet in the reconstruction
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 27 Jun 2014 00:05:23 +0000
parents 92742d8f3e56
children
comparison
equal deleted inserted replaced
472:6adbacc0f255 473:658b141a1600
221 ComTable[ComHandle].pFreeElement = pElem; 221 ComTable[ComHandle].pFreeElement = pElem;
222 for (i = 0; i < Entries; i++) { 222 for (i = 0; i < Entries; i++) {
223 if (i < Entries - 1) 223 if (i < Entries - 1)
224 pElem->pNext = pElem + 1; 224 pElem->pNext = pElem + 1;
225 else 225 else
226 pElem->pNext = pElem; 226 pElem->pNext = 0;
227 pElem++; 227 pElem++;
228 } 228 }
229 ptrs = (OS_QDATA **) pElem; 229 ptrs = (OS_QDATA **) pElem;
230 for (i = 0; i < OS_MAX_PRIORITY; i++) { 230 for (i = 0; i < OS_MAX_PRIORITY; i++) {
231 ComTable[ComHandle].Queue[i].pStart = ptrs; 231 ComTable[ComHandle].Queue[i].pStart = ptrs;