confile: cleanup write_config()

parent 966f5662
......@@ -3081,10 +3081,8 @@ int write_config(int fd, const struct lxc_conf *conf)
return 0;
ret = lxc_write_nointr(fd, conf->unexpanded_config, len);
if (ret < 0) {
SYSERROR("Failed to write configuration file");
return -1;
}
if (ret < 0)
return log_error_errno(-errno, errno, "Failed to write configuration file");
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