Re: [PATCH 2/6] btrfs: cleanup btrfs_find_device_by_devspec()

2019-01-17 Thread David Sterba
On Thu, Jan 17, 2019 at 11:32:29PM +0800, Anand Jain wrote: > btrfs_find_device_by_devspec() finds the device by @devid or by > @device_path. This patch makes code flow easy to read by open > coding the else part and renames devpath to device_path. > > Signed-off-by: Anand Jain > --- > If the els

[PATCH 2/6] btrfs: cleanup btrfs_find_device_by_devspec()

2019-01-17 Thread Anand Jain
btrfs_find_device_by_devspec() finds the device by @devid or by @device_path. This patch makes code flow easy to read by open coding the else part and renames devpath to device_path. Signed-off-by: Anand Jain --- If the else is preferred, I am ok to keep them. Nikolay? fs/btrfs/volumes.c | 34 +