diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:39 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:39 +1000 |
commit | d2ca644994d642c31b41242140e1fe819711c8f7 (patch) | |
tree | 787148e3e6e9bb102e608e08a7baca53509ca9d1 /util.c | |
parent | 0d481d3723398828c81963dcd58b1bf768e2c0c2 (diff) | |
download | mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.tar.gz mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.tar.xz mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.zip |
Remove getinfo_super_n and do some other cleaning up.
Getting close to a sensible description of what some of the
superswitch methods are supposed to do!
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -858,6 +858,8 @@ struct supertype *dup_super(struct supertype *orig) { struct supertype *st; + if (!orig) + return orig; st = malloc(sizeof(*st)); if (!st) return st; |