Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix for O1 compilation issue.[Issue-Id: ODUHIGH-285]
[o-du/l2.git]
/
src
/
mt
/
ss_msg.c
diff --git
a/src/mt/ss_msg.c
b/src/mt/ss_msg.c
index
0cb2bb3
..
504f8d1
100644
(file)
--- a/
src/mt/ss_msg.c
+++ b/
src/mt/ss_msg.c
@@
-2521,9
+2521,9
@@
MsgLen cnt, /* count */
Buffer *mBuf
)
{
Buffer *mBuf
)
{
- SsMsgInfo *minfo;
- Buffer *tmp;
- MsgLen numBytes;
+ SsMsgInfo *minfo
= NULLP
;
+ Buffer *tmp
= NULLP
;
+ MsgLen numBytes
=0
;
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
uint32_t line = __LINE__;
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
uint32_t line = __LINE__;
@@
-3370,10
+3370,10
@@
Data *dstBuf, /* destination buffer */
MsgLen *cCnt
)
{
MsgLen *cCnt
)
{
- Data *cptr;
- Buffer *tmp;
- SsMsgInfo *minfo;
- MsgLen numBytes;
+ Data *cptr
= NULLP
;
+ Buffer *tmp
= NULLP
;
+ SsMsgInfo *minfo
= NULLP
;
+ MsgLen numBytes
=0
;
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check source message buffer */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check source message buffer */
@@
-4146,11
+4146,11
@@
Buffer *buf
)
#endif
{
)
#endif
{
- register SsDblk *dptr;
+ register SsDblk *dptr
= NULLP
;
/* ss021.103 - Addition to check return value of SFree */
/* ss021.103 - Addition to check return value of SFree */
- S16 ret;
+ S16 ret
= ROK
;
#if (defined(SS_USE_ZBC_MEMORY) && defined (TENB_DPDK_BUF))
#if (defined(SS_USE_ZBC_MEMORY) && defined (TENB_DPDK_BUF))
- Data *dpdkBuf;
+ Data *dpdkBuf
= NULLP
;
#endif
#endif
@@
-5369,22
+5369,22
@@
S16 src, /* source id */
S16 dst /* destination id */
)
{
S16 dst /* destination id */
)
{
- QLen qlen; /* queue length */
-
MsgLen mlen
; /* message length */
+ QLen qlen
=0
; /* queue length */
+
MsgLen mlen =0
; /* message length */
/*
* SDeRegTTsk patch
*/
/* ss038.103 : 102061 Changed to MsgLen from S16 */
/*
* SDeRegTTsk patch
*/
/* ss038.103 : 102061 Changed to MsgLen from S16 */
-
MsgLen i
; /* counter */
-
S16 j
; /* counter */
- S16 k; /* counter */
- uint8_t data; /* data */
+
MsgLen i =0
; /* counter */
+
S16 j =0
; /* counter */
+ S16 k
=0
; /* counter */
+ uint8_t data
=0
; /* data */
uint8_t tdata[16] = {0}; /* temporary data */
uint8_t tdata[16] = {0}; /* temporary data */
- S8 prntBuf[256]; /* print buffer */
- Buffer *tmp; /* buffer ptr */
- Data *cptr;
+ S8 prntBuf[256]
={0}
; /* print buffer */
+ Buffer *tmp
= NULLP
; /* buffer ptr */
+ Data *cptr
=NULLP
;
/* ss012.13: Addition */
/* ss012.13: Addition */
- Data reg;
+ Data reg
=0
;
@@
-7973,7
+7973,7
@@
S16 SPutSBufDpdk
Data *ptr /* pointer to buffer */
)
{
Data *ptr /* pointer to buffer */
)
{
- S16 ret;
+ S16 ret
= ROK
;
uint32_t flags = 0;
ntl_free(mtGetNtlHdl(), ptr);
uint32_t flags = 0;
ntl_free(mtGetNtlHdl(), ptr);