udev: do not update return value on failure

This commit is contained in:
Yu Watanabe
2020-09-15 11:29:38 +09:00
parent f576730256
commit 7f67b01e3f
-1
View File
@@ -287,7 +287,6 @@ int link_config_get(link_config_ctx *ctx, sd_device *device, link_config **ret)
}
}
*ret = NULL;
return -ENOENT;
}