Remove an unnecessary NULL-check in insert_srh_header()

This commit is contained in:
Yasuyuki Tanaka 2016-02-16 15:14:06 +01:00 committed by Simon Duquennoy
parent 97a362acdc
commit 2abf27a6f7
2 changed files with 1 additions and 2 deletions

View file

@ -381,7 +381,7 @@ insert_srh_header(void)
cmpri = 15; cmpri = 15;
cmpre = 15; cmpre = 15;
if(node != NULL && node == root_node) { if(node == root_node) {
PRINTF("RPL: SRH no need to insert SRH\n"); PRINTF("RPL: SRH no need to insert SRH\n");
return 0; return 0;
} }

View file

@ -1348,7 +1348,6 @@ dao_ack_output(rpl_instance_t *instance, uip_ipaddr_t *dest, uint8_t sequence,
PRINT6ADDR(dest); PRINT6ADDR(dest);
PRINTF(" with status %d\n", status); PRINTF(" with status %d\n", status);
uip_ext_len = 0;
buffer = UIP_ICMP_PAYLOAD; buffer = UIP_ICMP_PAYLOAD;
buffer[0] = instance->instance_id; buffer[0] = instance->instance_id;