summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-11-22 20:58:05 +1100
committerNeilBrown <neilb@suse.de>2010-11-22 20:58:05 +1100
commit2b594614a153a94f2f061c9dfae079986d243ee5 (patch)
treeedc8719e67eb6009db3af9ad51cdb75322bd036d /config.c
parent1415fe4b6c766caa5a3e57a15cac4a3ac395c543 (diff)
Remove content from mddev_dev
Now that the next_member loop is much smaller it is easy to just use 'content' rather than stashing it in 'tmpdev->content'. So we can remove the 'content' field from 'struct mddev_dev'. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/config.c b/config.c
index f4d46ff4..1f78c689 100644
--- a/config.c
+++ b/config.c
@@ -260,7 +260,6 @@ struct mddev_dev *load_partitions(void)
d->devname = strdup(name);
d->next = rv;
d->used = 0;
- d->content = NULL;
rv = d;
}
fclose(f);
@@ -290,7 +289,6 @@ struct mddev_dev *load_containers(void)
}
d->next = rv;
d->used = 0;
- d->content = NULL;
rv = d;
}
free_mdstat(mdstat);
@@ -964,7 +962,6 @@ struct mddev_dev *conf_get_devs()
t->devname = strdup(globbuf.gl_pathv[i]);
t->next = dlist;
t->used = 0;
- t->content = NULL;
dlist = t;
/* printf("one dev is %s\n", t->devname);*/
}