Commit c7e98ee
committed
module_adapter: Propagate error from module specific callback
When module_prepare() fails we need to return to calling module the
exact specific error not just -EIO.
There is no real use for Host AP to receive an error code that doesn't
reflect the actual error.
While at it, make the code more compact as suggested by Guennadi.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>1 parent ebaa142 commit c7e98ee
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
| |||
0 commit comments