mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
udev: shorten code a bit
This commit is contained in:
parent
c6e77d7b22
commit
4b4a6c9b41
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user