diff options
Diffstat (limited to 'nuttx/net/uip/uip-input.c')
-rw-r--r-- | nuttx/net/uip/uip-input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/uip/uip-input.c b/nuttx/net/uip/uip-input.c index de8223640..660927d38 100644 --- a/nuttx/net/uip/uip-input.c +++ b/nuttx/net/uip/uip-input.c @@ -147,15 +147,15 @@ static uint8 uip_reass(void) uint16 offset, len; uint16 i; - /* If ip_reasstmr is zero, no packet is present in the buffer, so we + /* If uip_reasstmr is zero, no packet is present in the buffer, so we * write the IP header of the fragment into the reassembly * buffer. The timer is updated with the maximum age. */ - if (uip_reasstmr == 0) + if (!uip_reasstmr) { memcpy(uip_reassbuf, &BUF->vhl, UIP_IPH_LEN); - uip_reasstmr = UIP_REASS_MAXAGE; + uip_reasstmr = UIP_REASS_MAXAGE; uip_reassflags = 0; /* Clear the bitmap. */ |