|
@@ -856,12 +856,8 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
|
|
|
* copy this information to device memory.
|
|
|
*/
|
|
|
loaded_table = rproc_find_loaded_rsc_table(rproc, fw);
|
|
|
- if (!loaded_table) {
|
|
|
- ret = -EINVAL;
|
|
|
- goto clean_up;
|
|
|
- }
|
|
|
-
|
|
|
- memcpy(loaded_table, rproc->cached_table, tablesz);
|
|
|
+ if (loaded_table)
|
|
|
+ memcpy(loaded_table, rproc->cached_table, tablesz);
|
|
|
|
|
|
/* power up the remote processor */
|
|
|
ret = rproc->ops->start(rproc);
|