diff options
author | Valter Minute <valter.minute@toradex.com> | 2019-10-09 12:33:52 +0000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-10-11 15:58:18 +1100 |
commit | 0d0d0fa51b1f9703d324bac1d8cf000adca6be62 (patch) | |
tree | 6cf8f4a370864330beeb3195148ba227addaac21 | |
parent | 4605eb047b38f5b3d0d03182d90273f01c68a857 (diff) | |
download | device-tree-compiler-0d0d0fa51b1f9703d324bac1d8cf000adca6be62.tar.gz |
fdtoverlay: Return non-zero exit code if overlays can't be applied
At present the tool terminates its execution if one of the overlays passed
as command-line arguments can't be successfully read or applied, but the exit
code of the process is zero, making failures hard to detect inside scripts.
Signed-off-by: Valter Minute <valter.minute@toradex.com>
Message-Id: <20191009123256.14248-1-valter.minute@toradex.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | fdtoverlay.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fdtoverlay.c b/fdtoverlay.c index 8a1d11b..5350af6 100644 --- a/fdtoverlay.c +++ b/fdtoverlay.c @@ -110,7 +110,6 @@ static int do_fdtoverlay(const char *input_filename, (unsigned long)buf_len, fdt_totalsize(blob)); goto out_err; } - ret = 0; /* allocate blob pointer array */ ovblob = xmalloc(sizeof(*ovblob) * argc); |