summaryrefslogtreecommitdiffstats
path: root/super1.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 /super1.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 'super1.c')
-rw-r--r--super1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index bd9d1c9..9c712fc 100644
--- a/super1.c
+++ b/super1.c
@@ -697,7 +697,7 @@ static int init_super1(struct supertype *st, mdu_array_info_t *info,
memset(sb, 0, 1024);
st->sb = sb;
- if (info->major_version == -1) {
+ if (info == NULL) {
/* zeroing superblock */
return 0;
}