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 /Build.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 'Build.c')
-rw-r--r-- | Build.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -156,12 +156,6 @@ int Build(struct mddev_ident *ident, struct mddev_dev *devlist, struct shape *s, bitmap_fd = open(s->bitmap_file, O_RDWR); if (bitmap_fd < 0) { int major = BITMAP_MAJOR_HI; -#if 0 - if (s->bitmap_chunk == UnSet) { - pr_err("%s cannot be opened.\n", s->bitmap_file); - goto abort; - } -#endif bitmapsize = s->size >> 9; /* FIXME wrong for RAID10 */ if (CreateBitmap(s->bitmap_file, 1, NULL, s->bitmap_chunk, c->delay, |