summaryrefslogtreecommitdiffstats
path: root/src/udev/net
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-03-15 08:14:53 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-03-19 00:10:29 +0100
commit03677889f0ef42cdc534bf3b31265a054b20a354 (patch)
tree53caa0977a8afc5d0ee90e038ffd566e9e22451f /src/udev/net
parentvarious: make parse_env_file error handling the same in various places (diff)
downloadsystemd-03677889f0ef42cdc534bf3b31265a054b20a354.tar.xz
systemd-03677889f0ef42cdc534bf3b31265a054b20a354.zip
list: declare iterator of LIST_FOREACH() in the loop
Diffstat (limited to 'src/udev/net')
-rw-r--r--src/udev/net/link-config.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 64691113e0..bb6d1b7b3e 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -69,8 +69,6 @@ static LinkConfig* link_config_free(LinkConfig *config) {
DEFINE_TRIVIAL_CLEANUP_FUNC(LinkConfig*, link_config_free);
static void link_configs_free(LinkConfigContext *ctx) {
- LinkConfig *config, *config_next;
-
if (!ctx)
return;
@@ -423,7 +421,6 @@ int link_new(LinkConfigContext *ctx, sd_netlink **rtnl, sd_device *device, Link
}
int link_get_config(LinkConfigContext *ctx, Link *link) {
- LinkConfig *config;
int r;
assert(ctx);