network/ndisc: sd_ndisc_router_route_get_preference() does not return -EOPNOTSUPP anymore

This commit is contained in:
Yu Watanabe
2024-11-18 13:32:51 +09:00
parent c8ddd5ff72
commit cb3243460b

View File

@@ -1712,10 +1712,6 @@ static int ndisc_router_process_route(Link *link, sd_ndisc_router *rt) {
}
r = sd_ndisc_router_route_get_preference(rt, &preference);
if (r == -EOPNOTSUPP) {
log_link_debug_errno(link, r, "Received route prefix with unsupported preference, ignoring: %m");
return 0;
}
if (r < 0)
return log_link_warning_errno(link, r, "Failed to get router preference from RA: %m");