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>
This commit is contained in:
parent
4605eb047b
commit
0d0d0fa51b
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue