mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-12 13:30:03 +01:00
Each esp_netif_next_unsafe() call needs to iterate the s_head list. It is inefficient with a do-while loop + esp_netif_next_unsafe() call. Use SLIST_FOREACH instead to simplify the code and speed-up the matching. While at it, also fix returning NULL from esp_netif_is_netif_listed(). Signed-off-by: Axel Lin <axel.lin@gmail.com>
5.0 KiB
5.0 KiB