summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-07-31 11:23:43 +0800
committerDavid Sterba <dsterba@suse.cz>2014-08-22 15:07:03 +0200
commit508e9ac82732612138ffc79229d5dc76c2200f91 (patch)
treea6a0235aabb4ae71954ebc7b84f0b671232054f3
parentd3aa724646a68f814a70f149def9c563fdf252de (diff)
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>
-rw-r--r--cmds-property.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmds-property.c b/cmds-property.c
index 90c7603a..a7642933 100644
--- a/cmds-property.c
+++ b/cmds-property.c
@@ -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;