diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-10 20:03:40 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-10 20:03:40 +0100 |
commit | dd9bb2fbed335f69225ea1a3514bd27422288a18 (patch) | |
tree | 4e2f684f717d07dc66fa71b7d04f4c1539ceff71 /super-intel.c | |
parent | Fix required to enable RAID arrays on SAS disks. (diff) | |
download | mdadm-dd9bb2fbed335f69225ea1a3514bd27422288a18.tar.xz mdadm-dd9bb2fbed335f69225ea1a3514bd27422288a18.zip |
imsm: prune dead code in validate_geometry_imsm
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/super-intel.c b/super-intel.c index 325630f0..14e15218 100644 --- a/super-intel.c +++ b/super-intel.c @@ -3718,21 +3718,6 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout, dev, freesize, verbose); } - /* limit creation to the following levels */ - if (!dev) - switch (level) { - case 0: - case 1: - case 10: - case 5: - return 0; - default: - if (verbose) - fprintf(stderr, Name - ": IMSM only supports levels 0,1,5,10\n"); - return 1; - } - /* This device needs to be a device in an 'imsm' container */ fd = open(dev, O_RDONLY|O_EXCL, 0); if (fd >= 0) { |