treewide: another round of simplifications
Using the same scripts as in f647962d64 "treewide: yet more log_*_errno
+ return simplifications".
This commit is contained in:
@@ -336,10 +336,8 @@ static int process_timezone(void) {
|
||||
return log_error_errno(r, "Failed to read host timezone: %m");
|
||||
|
||||
mkdir_parents(etc_localtime, 0755);
|
||||
if (symlink(p, etc_localtime) < 0) {
|
||||
log_error_errno(errno, "Failed to create %s symlink: %m", etc_localtime);
|
||||
return -errno;
|
||||
}
|
||||
if (symlink(p, etc_localtime) < 0)
|
||||
return log_error_errno(errno, "Failed to create %s symlink: %m", etc_localtime);
|
||||
|
||||
log_info("%s copied.", etc_localtime);
|
||||
return 0;
|
||||
@@ -356,10 +354,8 @@ static int process_timezone(void) {
|
||||
e = strappenda("../usr/share/zoneinfo/", arg_timezone);
|
||||
|
||||
mkdir_parents(etc_localtime, 0755);
|
||||
if (symlink(e, etc_localtime) < 0) {
|
||||
log_error_errno(errno, "Failed to create %s symlink: %m", etc_localtime);
|
||||
return -errno;
|
||||
}
|
||||
if (symlink(e, etc_localtime) < 0)
|
||||
return log_error_errno(errno, "Failed to create %s symlink: %m", etc_localtime);
|
||||
|
||||
log_info("%s written", etc_localtime);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user