btrfs: minor style cleanups in btrfs_scan_one_device
authorAnand Jain <anand.jain@oracle.com>
Fri, 15 Dec 2017 07:40:16 +0000 (15:40 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:20 +0000 (16:08 +0100)
commit05a5c55dfc308544200752f2f0860c6bdd9b7281
tree4fa91079f92233b01227710881f29aeb53d6c0fe
parentc1f32b7c1f3be98386f3d268b786660030a44437
btrfs: minor style cleanups in btrfs_scan_one_device

Assign ret = -EINVAL where it is actually required.
Remove { } around single line if else code.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c