net: uip: Return correct packet discard status to caller

Fixed the compiler warning about not returning correct value to
caller. Now we return correct value if neighbor solicitation was
sent properly.

Change-Id: Ie28a2ee417bcdf3eb9b24ab91a49c688992e7420
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-06-01 10:57:22 +03:00 committed by Anas Nashif
commit 05c97c195e
12 changed files with 41 additions and 28 deletions

View file

@ -949,7 +949,7 @@ ext_hdr_options_process(struct net_buf *buf)
/*---------------------------------------------------------------------------*/
void
uint8_t
uip_process(struct net_buf *buf, uint8_t flag)
{
#if UIP_TCP
@ -2321,7 +2321,7 @@ uip_process(struct net_buf *buf, uint8_t flag)
UIP_STAT(++uip_stat.ip.sent);
/* Return and let the caller do the actual transmission. */
uip_flags(buf) = 0;
return;
return 1;
drop:
/* If there is an error, then just return the buffer to pool */
@ -2333,7 +2333,7 @@ uip_process(struct net_buf *buf, uint8_t flag)
uip_ext_len(buf) = 0;
uip_ext_bitmap(buf) = 0;
uip_flags(buf) = 0;
return;
return 0;
}
/*---------------------------------------------------------------------------*/
uint16_t