mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3465 from gebart/pr/ng-static-fixes
ng_ndp, fib: Two small code style fixes
This commit is contained in:
commit
c4a1411202
@ -57,7 +57,7 @@ static mutex_t mtx_access = MUTEX_INIT;
|
||||
static universal_address_container_t *universal_address_find_entry(uint8_t *addr, size_t addr_size)
|
||||
{
|
||||
for (size_t i = 0; i < UNIVERSAL_ADDRESS_MAX_ENTRIES; ++i) {
|
||||
if ((universal_address_table[i].address_size == addr_size) && (universal_address_table[i].address != NULL)) {
|
||||
if (universal_address_table[i].address_size == addr_size) {
|
||||
if (memcmp((universal_address_table[i].address), addr, addr_size) == 0) {
|
||||
return &(universal_address_table[i]);
|
||||
}
|
||||
|
@ -448,7 +448,7 @@ kernel_pid_t ng_ndp_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
|
||||
|
||||
#endif
|
||||
|
||||
if ((next_hop_ip == NULL)) { /* no route to host */
|
||||
if (next_hop_ip == NULL) { /* no route to host */
|
||||
if (iface == KERNEL_PID_UNDEF) {
|
||||
/* ng_ipv6_netif_t doubles as prefix list */
|
||||
iface = ng_ipv6_netif_find_by_prefix(&prefix, dst);
|
||||
|
Loading…
Reference in New Issue
Block a user