btrfs-progs: prop: remove an unnecessary condition on parse_args

>From commit c742debab1 ('btrfs-progs: fix a regression that
"property" with -t option doesn't work'), the number of arguments
is checked strictly. So the following condition never be
satisfied.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Satoru Takeuchi 2016-04-20 15:32:48 +09:00 committed by David Sterba
parent 1c40f6916b
commit b652aeeb38
1 changed files with 0 additions and 5 deletions

View File

@ -352,11 +352,6 @@ static void parse_args(int argc, char **argv,
if (value && optind < argc)
*value = argv[optind++];
if (optind != argc) {
error("unexpected agruments found");
usage(usage_str);
}
if (!*types && object && *object) {
ret = autodetect_object_types(*object, types);
if (ret < 0) {