diff options
author | NeilBrown <neilb@suse.de> | 2011-06-08 15:54:13 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 15:54:13 +1000 |
commit | 95eeceeb32775bffd06771c81c3dee547af0d62f (patch) | |
tree | edc54e03ccb4f86386768ef13b8b4d592876d80e /Assemble.c | |
parent | 58b3c6976a61ed5481d3b67548b4f2fe43b86165 (diff) |
getinfo_super now clears the 'info' structure before filling it in.
Some code currently clears 'info' before calling getinfo_super,
some code doesn't.
To be consistent, change it so no caller ever clears 'info',
but ever getinfo_super function must clear it.
Note that ->raid_disk may be meaningful if that 'map' is passed
non-NULL. In that case it is copied out before the structure
is zeroed.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -418,7 +418,6 @@ int Assemble(struct supertype *st, char *mddev, int uuid[4]; content = &info; - memset(content, 0, sizeof(*content)); tst->ss->getinfo_super(tst, content, NULL); if (!parse_uuid(ident->container, uuid) || @@ -484,7 +483,6 @@ int Assemble(struct supertype *st, char *mddev, } else { content = &info; - memset(content, 0, sizeof(*content)); tst->ss->getinfo_super(tst, content, NULL); if (!ident_matches(ident, content, tst, |