btrfs-progs: use for loop for scan_devices
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 2 Sep 2015 12:22:29 +0000 (20:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 2 Sep 2015 16:56:54 +0000 (18:56 +0200)
commit1593aa711a8578008833d634ce0a04f97dd4a837
tree7685a7312cc34137ee13b8612a3baaf4f350a42d
parent17e1e872d4e88e9b5ec524dd9dfb3da40a295096
btrfs-progs: use for loop for scan_devices

for() is more suitable than while() in this code block.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
chunk-recover.c