X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmt%2Fss_rbuf.c;h=d030e1b191a30e5529b0532f67db7c449b3b62f4;hb=1931d49496d91723b7c54c63db50ff4ee8ff03b6;hp=e0ef97c1c677eb544f08088122afcd5bc964fc12;hpb=829bbd114f1c3dc00c1da47bca0a8207c049df3f;p=o-du%2Fl2.git diff --git a/src/mt/ss_rbuf.c b/src/mt/ss_rbuf.c index e0ef97c1c..d030e1b19 100755 --- a/src/mt/ss_rbuf.c +++ b/src/mt/ss_rbuf.c @@ -225,10 +225,6 @@ Desc: Checks if Ring is full */ inline static S16 IsFull(SsRngBuf* rBuf) { -#if 0 - /* write+1 == read implies ring is full */ - return ((((rBuf->write + 1)> rBuf->size)?0:(rBuf->write+1))==rBuf->read); -#endif #if 1 if((rBuf->write+1) == rBuf->read) { @@ -583,33 +579,6 @@ S16 mtAddBufToRing(SsRngBufId ringId,void *bufPtr,U8 freeType) -#if 0 -int main(int argc, char **argv) -{ - SCreateSRngBuf(1,sizeof(SsRngBuf), 10); - rngElem* buf; - /* Fill buffer with test elements 3 times */ - buf = (SsRngBuf*)malloc(sizeof(rngBuf)); - buf->ptr = 1; - SEnqSRngBuf(1, buf); - buf = (SsRngBuf*)malloc(sizeof(rngBuf)); - buf->ptr = 2; - SEnqSRngBuf(1, buf); - buf = (SsRngBuf*)malloc(sizeof(rngBuf)); - buf->ptr = 3; - SEnqSRngBuf(1, buf); - - SDeqSRngBuf(1,buf); - printf("buf 1 = %d",buf->ptr); - SDeqSRngBuf(1,buf); - printf("buf 2 = %d",buf->ptr); - SDeqSRngBuf(1,buf); - printf("buf 3 = %d",buf->ptr); - - return 0; -} -#endif - /********************************************************************** End of file **********************************************************************/