PPP, PPPoS, fixed warnings with PPPDEBUG disabled

This commit is contained in:
Sylvain Rochet 2015-02-18 00:59:27 +01:00
parent b957a81ea5
commit 1c91bb5a20

View File

@ -743,13 +743,11 @@ drop:
void void
pppos_accm_out_config(pppos_pcb *pppos, u32_t accm) pppos_accm_out_config(pppos_pcb *pppos, u32_t accm)
{ {
ppp_pcb *ppp;
int i; int i;
if (!pppos_exist(pppos)) { if (!pppos_exist(pppos)) {
return; return;
} }
ppp = pppos->ppp;
/* Load the ACCM bits for the 32 control codes. */ /* Load the ACCM bits for the 32 control codes. */
for (i = 0; i < 32/8; i++) { for (i = 0; i < 32/8; i++) {
@ -757,21 +755,19 @@ pppos_accm_out_config(pppos_pcb *pppos, u32_t accm)
} }
PPPDEBUG(LOG_INFO, ("pppos_accm_out_config[%d]: in_accm=%X %X %X %X\n", PPPDEBUG(LOG_INFO, ("pppos_accm_out_config[%d]: in_accm=%X %X %X %X\n",
ppp->num, pppos->ppp->num,
pppos->out_accm[0], pppos->out_accm[1], pppos->out_accm[2], pppos->out_accm[3])); pppos->out_accm[0], pppos->out_accm[1], pppos->out_accm[2], pppos->out_accm[3]));
} }
void void
pppos_accm_in_config(pppos_pcb *pppos, u32_t accm) pppos_accm_in_config(pppos_pcb *pppos, u32_t accm)
{ {
ppp_pcb *ppp;
int i; int i;
SYS_ARCH_DECL_PROTECT(lev); SYS_ARCH_DECL_PROTECT(lev);
if (!pppos_exist(pppos)) { if (!pppos_exist(pppos)) {
return; return;
} }
ppp = pppos->ppp;
/* Load the ACCM bits for the 32 control codes. */ /* Load the ACCM bits for the 32 control codes. */
SYS_ARCH_PROTECT(lev); SYS_ARCH_PROTECT(lev);
@ -781,7 +777,7 @@ pppos_accm_in_config(pppos_pcb *pppos, u32_t accm)
SYS_ARCH_UNPROTECT(lev); SYS_ARCH_UNPROTECT(lev);
PPPDEBUG(LOG_INFO, ("pppos_accm_in_config[%d]: in_accm=%X %X %X %X\n", PPPDEBUG(LOG_INFO, ("pppos_accm_in_config[%d]: in_accm=%X %X %X %X\n",
ppp->num, pppos->ppp->num,
pppos->in_accm[0], pppos->in_accm[1], pppos->in_accm[2], pppos->in_accm[3])); pppos->in_accm[0], pppos->in_accm[1], pppos->in_accm[2], pppos->in_accm[3]));
} }