From: Lennart Poettering Date: Wed, 31 May 2023 07:37:24 +0000 (+0200) Subject: find-esp: drop some redundant 'else' X-Git-Tag: v254-rc1~328^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14e5c99236139abc2362bd9b671f19ff375263af;p=thirdparty%2Fsystemd.git find-esp: drop some redundant 'else' --- diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c index 7cd149b29b4..d9336f4431d 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);