mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-29 00:42:45 +00:00
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>
This commit is contained in:
parent
d3aa724646
commit
508e9ac827
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user