btrfs: dev-replace: Remove impossible WARN_ON
authorNikolay Borisov <nborisov@suse.com>
Tue, 14 May 2019 10:54:40 +0000 (13:54 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:54 +0000 (13:34 +0200)
commit419684b2c217d2eba6a4a4cf0548c346be7879d7
tree00583236f20f251f2d2e156f37373b422eeb5546
parentb0d9e1ea17fdd3c1a13e2f9dffe7d808d6c9641a
btrfs: dev-replace: Remove impossible WARN_ON

This WARN_ON can never trigger because src_device cannot be null.
btrfs_find_device_by_devspec always returns either an error or a valid
pointer to the device. Just remove it.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c