]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
find-esp: drop some redundant 'else' 27861/head
authorLennart Poettering <lennart@poettering.net>
Wed, 31 May 2023 07:37:24 +0000 (09:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 May 2023 08:12:47 +0000 (10:12 +0200)
src/shared/find-esp.c

index 7cd149b29b44561a9744de4f19583856edeb7c35..d9336f4431d05bf7286f96e27f3a931b7bc0b392 100644 (file)
@@ -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);