ipa: fix compilation warning
Shows up with gcc-4.7 ipa.c: In function 'osmo_ipa_rcvmsg_base': ipa.c:210:6: warning: variable 'ret' set but not used [-Wunused-but-set-variabl
This commit is contained in:
parent
7f9ebe2e56
commit
631c6fe0ad
|
@ -207,13 +207,12 @@ int osmo_ipa_rcvmsg_base(struct msgb *msg, struct osmo_fd *bfd, int server)
|
||||||
{
|
{
|
||||||
int ipa_ccm = 0;
|
int ipa_ccm = 0;
|
||||||
uint8_t msg_type = *(msg->l2h);
|
uint8_t msg_type = *(msg->l2h);
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
switch (msg_type) {
|
switch (msg_type) {
|
||||||
case IPAC_MSGT_PING:
|
case IPAC_MSGT_PING:
|
||||||
LOGP(DLINP, LOGL_DEBUG, "PING!\n");
|
LOGP(DLINP, LOGL_DEBUG, "PING!\n");
|
||||||
ipa_ccm = 1;
|
ipa_ccm = 1;
|
||||||
ret = ipaccess_send_pong(bfd->fd);
|
ipaccess_send_pong(bfd->fd);
|
||||||
break;
|
break;
|
||||||
case IPAC_MSGT_PONG:
|
case IPAC_MSGT_PONG:
|
||||||
LOGP(DLINP, LOGL_DEBUG, "PONG!\n");
|
LOGP(DLINP, LOGL_DEBUG, "PONG!\n");
|
||||||
|
@ -223,7 +222,7 @@ int osmo_ipa_rcvmsg_base(struct msgb *msg, struct osmo_fd *bfd, int server)
|
||||||
if (server) {
|
if (server) {
|
||||||
LOGP(DLINP, LOGL_DEBUG, "ID_ACK? -> ACK!\n");
|
LOGP(DLINP, LOGL_DEBUG, "ID_ACK? -> ACK!\n");
|
||||||
ipa_ccm = 1;
|
ipa_ccm = 1;
|
||||||
ret = ipaccess_send_id_ack(bfd->fd);
|
ipaccess_send_id_ack(bfd->fd);
|
||||||
} else {
|
} else {
|
||||||
LOGP(DLINP, LOGL_DEBUG, "ID_ACK! OK!\n");
|
LOGP(DLINP, LOGL_DEBUG, "ID_ACK! OK!\n");
|
||||||
ipa_ccm = 1;
|
ipa_ccm = 1;
|
||||||
|
|
Loading…
Reference in New Issue