diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-05-31 09:37:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-05-31 10:12:47 +0200 |
commit | 14e5c99236139abc2362bd9b671f19ff375263af (patch) | |
tree | 08821573bb4df0b877527d57a50f93fcc7e3e778 /src/shared | |
parent | find-esp: change "unprivileged_mode" parameter to be tristate (diff) | |
download | systemd-14e5c99236139abc2362bd9b671f19ff375263af.tar.xz systemd-14e5c99236139abc2362bd9b671f19ff375263af.zip |
find-esp: drop some redundant 'else'
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/find-esp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c index 7cd149b29b..d9336f4431 100644 --- a/src/shared/find-esp.c +++ b/src/shared/find-esp.c @@ -66,9 +66,9 @@ static int verify_esp_blkid( r = blkid_do_safeprobe(b); if (r == -2) return log_error_errno(SYNTHETIC_ERRNO(ENODEV), "File system \"%s\" is ambiguous.", node); - else if (r == 1) + if (r == 1) return log_error_errno(SYNTHETIC_ERRNO(ENODEV), "File system \"%s\" does not contain a label.", node); - else if (r != 0) + if (r != 0) return log_error_errno(errno ?: SYNTHETIC_ERRNO(EIO), "Failed to probe file system \"%s\": %m", node); r = blkid_probe_lookup_value(b, "TYPE", &v, NULL); |