btrfs-progs: cleanup cmd_device_usage, simplify loop checks
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 9 Nov 2015 09:59:38 +0000 (17:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Nov 2015 13:23:45 +0000 (14:23 +0100)
commit0ca4cd99a50cfe942701fa915f34b6543a89bc98
tree4b24ce2f4ae4883795c161f0899fe7eba870640b
parentf5d6833768f9e627025b4b4cf13581775b69711e
btrfs-progs: cleanup cmd_device_usage, simplify loop checks

1: Remove more_than_one variable, use iterators value instead
2: Remove "out" label, we use break instead.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
[ changelog update ]
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-device.c