tree-wide: coccinelle fixes
Yet another batch of Coccinelle fixes.
This commit is contained in:
committed by
Luca Boccassi
parent
0de0ba573b
commit
2f0927626a
+1
-1
@@ -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.");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user