From d2ca644994d642c31b41242140e1fe819711c8f7 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 12 Jul 2008 20:27:39 +1000 Subject: 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! --- Assemble.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index d9b9b81..7efa2b8 100644 --- a/Assemble.c +++ b/Assemble.c @@ -914,14 +914,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, if (j >= 0 /* && devices[j].uptodate */) { #ifndef MDASSEMBLE - if (st->ss->external) { - devices[j].i.disk.number = - devices[j].i.disk.raid_disk; - st->ss->getinfo_super_n(st, - &devices[j].i); - rv = sysfs_add_disk(sra, - &devices[j].i); - } else + if (st->ss->external) + rv = sysfs_add_disk(sra, &devices[j].i); + else #endif rv = ioctl(mdfd, ADD_NEW_DISK, &devices[j].i.disk); -- cgit