udev: shorten code a bit

This commit is contained in:
Yu Watanabe
2019-04-01 10:30:31 +09:00
parent c6e77d7b22
commit 4b4a6c9b41
+1 -3
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;
}