summaryrefslogtreecommitdiffstats
path: root/commands/of_diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/of_diff.c')
-rw-r--r--commands/of_diff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/of_diff.c b/commands/of_diff.c
index fa99fcd641..6a78263200 100644
--- a/commands/of_diff.c
+++ b/commands/of_diff.c
@@ -77,9 +77,7 @@ static int do_of_diff(int argc, char *argv[])
goto out;
}
- of_diff(a, b, 0);
-
- ret = 0;
+ ret = of_diff(a, b, 0) ? COMMAND_ERROR : COMMAND_SUCCESS;
out:
if (a && a != root)
of_delete_node(a);