diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 12:27:39 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 12:27:39 +0200 |
commit | ba7eb04f71b0f5add796bd94319d1a0671b566de (patch) | |
tree | c963b12819b4558fa7c82119a616a8f4c5acc349 /super0.c | |
parent | Remove getinfo_super_n and do some other cleaning up. (diff) | |
download | 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |