Skip to contentSkip to conversation

main - clang: remove unused assignment

PATCH Zdenek Kabelac 1 participant 1 message Apr 23, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6a099707c433f0b3f2644c52f7773751832693a4
Commit:        6a099707c433f0b3f2644c52f7773751832693a4
Parent:        49caa9f3b1950ffd2ca9aa990e8bf0b480b62b87
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Apr 23 17:27:44 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Apr 23 23:00:55 2021 +0200

clang: remove unused assignment

---
 lib/device/dev-md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/device/dev-md.c +1 -1
index 78a77a968..6ddeb5b9e 100644
@@ -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;