diff options
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 45e255d4916f..1442761ac98e 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4300,9 +4300,6 @@ static int hot_remove_disk(mddev_t * mddev, dev_t dev) | |||
4300 | char b[BDEVNAME_SIZE]; | 4300 | char b[BDEVNAME_SIZE]; |
4301 | mdk_rdev_t *rdev; | 4301 | mdk_rdev_t *rdev; |
4302 | 4302 | ||
4303 | if (!mddev->pers) | ||
4304 | return -ENODEV; | ||
4305 | |||
4306 | rdev = find_rdev(mddev, dev); | 4303 | rdev = find_rdev(mddev, dev); |
4307 | if (!rdev) | 4304 | if (!rdev) |
4308 | return -ENXIO; | 4305 | return -ENXIO; |