Remove an unnecessary NULL-check in insert_srh_header()
This commit is contained in:
parent
97a362acdc
commit
2abf27a6f7
|
@ -381,7 +381,7 @@ insert_srh_header(void)
|
|||
cmpri = 15;
|
||||
cmpre = 15;
|
||||
|
||||
if(node != NULL && node == root_node) {
|
||||
if(node == root_node) {
|
||||
PRINTF("RPL: SRH no need to insert SRH\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1348,7 +1348,6 @@ dao_ack_output(rpl_instance_t *instance, uip_ipaddr_t *dest, uint8_t sequence,
|
|||
PRINT6ADDR(dest);
|
||||
PRINTF(" with status %d\n", status);
|
||||
|
||||
uip_ext_len = 0;
|
||||
buffer = UIP_ICMP_PAYLOAD;
|
||||
|
||||
buffer[0] = instance->instance_id;
|
||||
|
|
Loading…
Reference in a new issue