Cleanup netif_name_to_index() implementation

This commit is contained in:
Dirk Ziegelmeier 2017-05-02 12:51:25 +02:00
parent 0545eba002
commit eab2ae5d78

View File

@ -1433,7 +1433,7 @@ netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipa
/** /**
* @ingroup netif * @ingroup netif
* Return the interface index for the netif with name * Return the interface index for the netif with name
* or 0 (invalid interface) if not found/on error * or NETIF_NO_INDEX if not found/on error
* *
* @param name the name of the netif * @param name the name of the netif
*/ */
@ -1445,7 +1445,7 @@ netif_name_to_index(const char *name)
return netif_get_index(netif); return netif_get_index(netif);
} }
/* No name found, return invalid index */ /* No name found, return invalid index */
return 0; return NETIF_NO_INDEX;
} }
/** /**