diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 7ad8ae994ca0..fdd2880707df 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -320,10 +320,6 @@ int btrfs_dev_replace_start(struct btrfs_root *root, | |||
320 | return -EINVAL; | 320 | return -EINVAL; |
321 | } | 321 | } |
322 | 322 | ||
323 | if ((args->start.srcdevid == 0 && args->start.srcdev_name[0] == '\0') || | ||
324 | args->start.tgtdev_name[0] == '\0') | ||
325 | return -EINVAL; | ||
326 | |||
327 | /* the disk copy procedure reuses the scrub code */ | 323 | /* the disk copy procedure reuses the scrub code */ |
328 | mutex_lock(&fs_info->volume_mutex); | 324 | mutex_lock(&fs_info->volume_mutex); |
329 | ret = btrfs_find_device_by_user_input(root, args->start.srcdevid, | 325 | ret = btrfs_find_device_by_user_input(root, args->start.srcdevid, |