netlink-util: remove support for kernel < 5.5

This commit is contained in:
Mike Yuan
2026-01-19 12:51:56 +01:00
parent 742308caba
commit 42b09813f4
+1 -2
View File
@@ -117,8 +117,7 @@ int rtnl_resolve_ifname_full(
r = sd_netlink_call(*rtnl, message, 0, &reply);
if (r >= 0)
return parse_newlink_message(reply, ret_name, ret_altnames);
/* The kernels older than 76c9ac0ee878f6693d398d3a95ccaf85e1f597a6 (v5.5) return -EINVAL. */
if (!IN_SET(r, -ENODEV, -EINVAL))
if (r != -ENODEV)
return r;
}