From 11de19f3da18cf658d7efadbecc6691e13503a00 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 24 Oct 2024 10:07:45 +0200 Subject: [PATCH] veritysetup-generator: remove unused code --- src/veritysetup/veritysetup-generator.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/veritysetup/veritysetup-generator.c b/src/veritysetup/veritysetup-generator.c index 95ce82b7c60..8e35946ca6c 100644 --- a/src/veritysetup/veritysetup-generator.c +++ b/src/veritysetup/veritysetup-generator.c @@ -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, -- 2.47.3