dm-clone: remove unused memset

Remove unused memset() with superblock_disk uuid field.
The uuid field is not used, so there's no need to set it using memset().
Remove memset() call and FIXME comment.

Signed-off-by: Elouan Da Costa Peixoto <elouandacostapeixoto@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
Elouan Da Costa Peixoto 2026-08-25 17:01:21 +02:00 committed by Mikulas Patocka
parent 624c30d967
commit 769d5353c8

View File

@ -300,9 +300,6 @@ static void __prepare_superblock(struct dm_clone_metadata *cmd,
{
sb->flags = cpu_to_le32(0UL);
/* FIXME: UUID is currently unused */
memset(sb->uuid, 0, sizeof(sb->uuid));
sb->magic = cpu_to_le64(SUPERBLOCK_MAGIC);
sb->version = cpu_to_le32(DM_CLONE_MAX_METADATA_VERSION);