1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

udev: shorten code a bit

This commit is contained in:
Yu Watanabe 2019-04-01 00:55:22 +09:00
parent c6e77d7b22
commit 4b4a6c9b41

View File

@ -166,9 +166,7 @@ int link_load_one(link_config_ctx *ctx, const char *filename) {
log_debug("Parsed configuration file %s", filename);
LIST_PREPEND(links, ctx->links, link);
link = NULL;
LIST_PREPEND(links, ctx->links, TAKE_PTR(link));
return 0;
}