summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mdadm.h2
-rw-r--r--super-ddf.c2
-rw-r--r--super-intel.c4
3 files changed, 0 insertions, 8 deletions
diff --git a/mdadm.h b/mdadm.h
index 13e1df94..9d5e1c0c 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -712,8 +712,6 @@ struct supertype {
int container_dev; /* devnum of container */
void *sb;
void *info;
- int loaded_container; /* Set if load_super found a container,
- * not just one device */
struct metadata_update *updates;
struct metadata_update **update_tail;
diff --git a/super-ddf.c b/super-ddf.c
index a97e05de..98c9d58b 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -850,7 +850,6 @@ static int load_super_ddf(struct supertype *st, int fd,
st->minor_version = 0;
st->max_devs = 512;
}
- st->loaded_container = 0;
return 0;
}
@@ -2877,7 +2876,6 @@ static int load_super_ddf_all(struct supertype *st, int fd,
st->max_devs = 512;
}
st->container_dev = fd2devnum(fd);
- st->loaded_container = 1;
return 0;
}
diff --git a/super-intel.c b/super-intel.c
index 4176b745..58d0fa74 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -2871,8 +2871,6 @@ static int load_super_imsm_all(struct supertype *st, int fd, void **sbp,
st->minor_version = 0;
st->max_devs = IMSM_MAX_DEVICES;
}
- st->loaded_container = 1;
-
return 0;
}
@@ -2923,8 +2921,6 @@ static int load_super_imsm(struct supertype *st, int fd, char *devname)
st->minor_version = 0;
st->max_devs = IMSM_MAX_DEVICES;
}
- st->loaded_container = 0;
-
return 0;
}