summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:39 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:39 +1000
commitba7eb04f71b0f5add796bd94319d1a0671b566de (patch)
treec963b12819b4558fa7c82119a616a8f4c5acc349 /super0.c
parentd2ca644994d642c31b41242140e1fe819711c8f7 (diff)
downloadmdadm-ba7eb04f71b0f5add796bd94319d1a0671b566de.tar.gz
mdadm-ba7eb04f71b0f5add796bd94319d1a0671b566de.tar.xz
mdadm-ba7eb04f71b0f5add796bd94319d1a0671b566de.zip
Remove silly convention that major='-1' means 'zero superblock'.
Use 'info pointer is NULL' instead.
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 27999d9..1e06375 100644
--- a/super0.c
+++ b/super0.c
@@ -559,7 +559,7 @@ static int init_super0(struct supertype *st, mdu_array_info_t *info,
memset(sb, 0, MD_SB_BYTES + sizeof(bitmap_super_t));
st->sb = sb;
- if (info->major_version == -1) {
+ if (info == NULL) {
/* zeroing the superblock */
return 0;
}