From: Yu Watanabe Date: Sun, 31 Mar 2019 15:55:22 +0000 (+0900) Subject: udev: shorten code a bit X-Git-Tag: v242-rc1~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4a6c9b415aef902edfc75eb2de330398f7f05a;p=thirdparty%2Fsystemd.git udev: shorten code a bit --- diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index daa737a68d4..14690e364b9 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -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; }