mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-18 11:40:56 +00:00
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>
This commit is contained in:
parent
1c40f6916b
commit
b652aeeb38
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user