Skip to content

Commit

Permalink
confile: cleanup write_config()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 15, 2020
1 parent 2e26d92 commit c136c80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lxc/confile.c
Expand Up @@ -2875,10 +2875,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;
}
Expand Down

0 comments on commit c136c80

Please sign in to comment.