confile: cleanup write_config()

parent 2e26d924
...@@ -2875,10 +2875,8 @@ int write_config(int fd, const struct lxc_conf *conf) ...@@ -2875,10 +2875,8 @@ int write_config(int fd, const struct lxc_conf *conf)
return 0; return 0;
ret = lxc_write_nointr(fd, conf->unexpanded_config, len); ret = lxc_write_nointr(fd, conf->unexpanded_config, len);
if (ret < 0) { if (ret < 0)
SYSERROR("Failed to write configuration file"); return log_error_errno(-errno, errno, "Failed to write configuration file");
return -1;
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment