forked from Mirrors/btrfs-progs
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
parent
1c40f6916b
commit
b652aeeb38
|
@ -352,11 +352,6 @@ static void parse_args(int argc, char **argv,
|
||||||
if (value && optind < argc)
|
if (value && optind < argc)
|
||||||
*value = argv[optind++];
|
*value = argv[optind++];
|
||||||
|
|
||||||
if (optind != argc) {
|
|
||||||
error("unexpected agruments found");
|
|
||||||
usage(usage_str);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!*types && object && *object) {
|
if (!*types && object && *object) {
|
||||||
ret = autodetect_object_types(*object, types);
|
ret = autodetect_object_types(*object, types);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Reference in New Issue