1
0
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:
Joakim Gebart 2015-07-21 06:52:17 +02:00
commit c4a1411202
2 changed files with 2 additions and 2 deletions

View File

@ -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]);
}

View File

@ -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);