From 60fcc3cfedd9ee1557e981f557511d0ee87ff45e Mon Sep 17 00:00:00 2001
From: Zdenek Kabelac <zkabelac@redhat.com>
Date: Fri, 23 Apr 2021 17:27:44 +0200
Subject: [PATCH 22/22] clang: remove unused assignment

---
 lib/device/dev-md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/device/dev-md.c b/lib/device/dev-md.c
index 9f211a8..9598039 100644
--- a/lib/device/dev-md.c
+++ b/lib/device/dev-md.c
@@ -55,7 +55,7 @@ static int _dev_has_md_magic(struct device *dev, uint64_t sb_offset)
 static int _dev_has_imsm_magic(struct device *dev, uint64_t devsize_sectors)
 {
 	char imsm_signature[IMSM_SIG_LEN];
-	uint64_t off = (devsize_sectors * 512) - 1024;
+	uint64_t off;
 	unsigned int physical_block_size = 0;
 	unsigned int logical_block_size = 0;
 
-- 
2.27.0

