tree-wide: coccinelle fixes

Yet another batch of Coccinelle fixes.
This commit is contained in:
Frantisek Sumsal
2021-07-09 20:54:22 +01:00
committed by Luca Boccassi
parent 0de0ba573b
commit 2f0927626a
7 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ int systemd_efi_options_efivarfs_if_newer(char **line) {
return log_debug_errno(errno, "Failed to stat EFI variable SystemdOptions: %m");
if (stat(EFIVAR_CACHE_PATH(EFI_SYSTEMD_VARIABLE(SystemdOptions)), &b) < 0) {
if (errno != -ENOENT)
if (errno != ENOENT)
log_debug_errno(errno, "Failed to stat "EFIVAR_CACHE_PATH(EFI_SYSTEMD_VARIABLE(SystemdOptions))": %m");
} else if (compare_stat_mtime(&a, &b) > 0)
log_debug("Variable SystemdOptions in evifarfs is newer than in cache.");
+2 -2
View File
@@ -1334,10 +1334,10 @@ static int get_timezones_from_tzdata_zi(char ***ret) {
continue;
char *tz;
if (*type == 'Z' || *type == 'z')
if (IN_SET(*type, 'Z', 'z'))
/* Zone lines have timezone in field 1. */
tz = f1;
else if (*type == 'L' || *type == 'l')
else if (IN_SET(*type, 'L', 'l'))
/* Link lines have timezone in field 2. */
tz = f2;
else