Message ID | 1406777024-7647-2-git-send-email-guihc.fnst@cn.fujitsu.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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;
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(-)