]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/net/link-config.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / udev / net / link-config.c
index 25edb49d28a81584c0ae3707812f629f7d40e603..5f18ba35fc38b4ae9ea9564e9e8b17b96a6e4b3b 100644 (file)
@@ -97,7 +97,7 @@ int link_config_ctx_new(LinkConfigContext **ret) {
                 return -ENOMEM;
 
         *ctx = (LinkConfigContext) {
-                .ethtool_fd = -1,
+                .ethtool_fd = -EBADF,
         };
 
         *ret = TAKE_PTR(ctx);