]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
veritysetup-generator: remove unused code 34877/head
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 24 Oct 2024 08:07:45 +0000 (10:07 +0200)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 24 Oct 2024 08:07:45 +0000 (10:07 +0200)
src/veritysetup/veritysetup-generator.c

index 95ce82b7c603da13721b5852d4eae345b066b66c..8e35946ca6c2c7d2596c3c76200933d93bb9fa75 100644 (file)
@@ -453,7 +453,6 @@ static int add_veritytab_devices(void) {
         for (;;) {
                 _cleanup_free_ char *line = NULL, *name = NULL, *data_device = NULL, *hash_device = NULL,
                                     *roothash = NULL, *options = NULL;
-                char *data_uuid, *hash_uuid;
 
                 r = read_stripped_line(f, LONG_LINE_MAX, &line);
                 if (r < 0)
@@ -472,14 +471,6 @@ static int add_veritytab_devices(void) {
                         continue;
                 }
 
-                data_uuid = startswith(data_device, "UUID=");
-                if (!data_uuid)
-                        data_uuid = path_startswith(data_device, "/dev/disk/by-uuid/");
-
-                hash_uuid = startswith(hash_device, "UUID=");
-                if (!hash_uuid)
-                        hash_uuid = path_startswith(hash_device, "/dev/disk/by-uuid/");
-
                 r = create_veritytab_device(
                                 name,
                                 data_device,