diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2024-03-19 11:15:29 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-03-22 12:21:46 +0100 |
commit | da4d58b6d01ed8b0149b777eba7818861fde8c80 (patch) | |
tree | 0357bd866e7e33765ce3c5e336ad910b0e6846f1 /Grow.c | |
parent | mdadm: fix grow segfault for IMSM (diff) | |
download | mdadm-da4d58b6d01ed8b0149b777eba7818861fde8c80.tar.xz mdadm-da4d58b6d01ed8b0149b777eba7818861fde8c80.zip |
Remove all "if zeros" pt.2
Commit e15e8b00cbce ("Remove all "if zeros"") did not remove all "if 0"
code blocks.
This commit is cleanup for that commit.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'Grow.c')
-rw-r--r-- | Grow.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -4413,19 +4413,8 @@ static void validate(int afd, int bfd, unsigned long long offset) lseek64(afd, __le64_to_cpu(bsb2.arraystart)*512, 0); if ((unsigned long long)read(afd, abuf, len) != len) fail("read first from array failed"); - if (memcmp(bbuf, abuf, len) != 0) { -#if 0 - int i; - printf("offset=%llu len=%llu\n", - (unsigned long long)__le64_to_cpu(bsb2.arraystart)*512, len); - for (i=0; i<len; i++) - if (bbuf[i] != abuf[i]) { - printf("first diff byte %d\n", i); - break; - } -#endif + if (memcmp(bbuf, abuf, len) != 0) fail("data1 compare failed"); - } } if (bsb2.length2) { unsigned long long len = __le64_to_cpu(bsb2.length2)*512; |