btrfs-progs: remove unnecessary return value check in btrfs-property

The function @parse_prop() returns either -1 or 0, no need to check
for other values. Just return the unnecessary check.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
master
Gui Hecheng 2014-07-31 11:23:43 +08:00 committed by David Sterba
parent d3aa724646
commit 508e9ac827
1 changed files with 0 additions and 4 deletions

View File

@ -276,10 +276,6 @@ static int setget_prop(int types, const char *object,
fprintf(stderr, "ERROR: property is unknown\n");
ret = 40;
goto out;
} else if (ret) {
fprintf(stderr, "ERROR: parse_prop reported unknown error\n");
ret = 42;
goto out;
}
types &= prop->types;