]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: do not update return value on failure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Sep 2020 09:30:58 +0000 (18:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 Sep 2020 02:29:38 +0000 (11:29 +0900)
src/udev/net/link-config.c

index cb1db3b52b027f6565d01343c5a32361758530e4..c23c2bdd2057624f4ed66d6b5f63d02ee6983552 100644 (file)
@@ -287,7 +287,6 @@ int link_config_get(link_config_ctx *ctx, sd_device *device, link_config **ret)
                 }
         }
 
-        *ret = NULL;
         return -ENOENT;
 }