* will not be called automatically. So, call it here. */
a = set_first(link->static_addresses);
if (!a) {
- log_link_warning(link, "No static address is stored.");
- link_enter_failed(link);
+ log_link_debug(link, "No static address is stored. Already removed?");
return 1;
}
- if (!a->callback) {
- log_link_warning(link, "Address ready callback is not set.");
- link_enter_failed(link);
- return 1;
- }
- r = a->callback(a);
+
+ r = static_address_ready_callback(a);
if (r < 0)
link_enter_failed(link);
}