]> sourceware.org Git - lvm2.git/commitdiff
clang: remove unused assignment
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Apr 2021 15:27:44 +0000 (17:27 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Apr 2021 21:00:55 +0000 (23:00 +0200)
lib/device/dev-md.c

index 78a77a9680fa9c78038589dd2b44c5eff53231e5..6ddeb5b9e9672661778b78079b47e639f2febaf9 100644 (file)
@@ -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;
 
This page took 0.039176 seconds and 5 git commands to generate.