[2/3] btrfs-progs: remove unnecessary return value check in btrfs-property
diff mbox

Message ID 1406777024-7647-2-git-send-email-guihc.fnst@cn.fujitsu.com
State Accepted
Headers show

Commit Message

Gui Hecheng July 31, 2014, 3:23 a.m. UTC
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>
---
 cmds-property.c | 4 ----
 1 file changed, 4 deletions(-)

Patch
diff mbox

diff --git a/cmds-property.c b/cmds-property.c
index 90c7603..a764293 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;