Commit f3732b2
tools: rimage: return a negative error code from elf_error()
elf_error() negates its argument, so an already negative code was turned
into a positive value that callers testing "ret < 0" take for success.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent b8d5999 commit f3732b2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments