[PATCH] Signed-off-by: Elouan Da Costa Peixoto <elouandacostapeixoto@gmail.com>

Elouan Da Costa Peixoto posted 1 patch 1 month ago
There is a newer version of this series
drivers/md/dm-clone-metadata.c | 3 ---
1 file changed, 3 deletions(-)
[PATCH] Signed-off-by: Elouan Da Costa Peixoto <elouandacostapeixoto@gmail.com>
Posted by Elouan Da Costa Peixoto 1 month ago
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
---
 drivers/md/dm-clone-metadata.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/md/dm-clone-metadata.c b/drivers/md/dm-clone-metadata.c
index e50a5b5a4aea..75ea39d18c12 100644
--- a/drivers/md/dm-clone-metadata.c
+++ b/drivers/md/dm-clone-metadata.c
@@ -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);
 

base-commit: 0a0d1d55dad570724bf8c7ea83409639cfb4be9b
-- 
2.55.0