]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: remove useless loop (#36648)
authorMatteo Croce <teknoraver@meta.com>
Sat, 8 Mar 2025 16:39:09 +0000 (17:39 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Mar 2025 16:39:09 +0000 (17:39 +0100)
commitbd0d22c2a5bdbf427c68eab630dc06f55dc96c72
treee9262b0ce9595325bcb0cdd75822c6d7a6b8d32e
parentd9208ff9a450a1dcb317efc35090846a0c84e09e
network: remove useless loop (#36648)

In route_metric_can_update() the loop iterates over the metrics, but
skips all indices except for RTAX_MTU.

Replace it with a simple compare.
src/network/networkd-route-metric.c