@@ -2691,8 +2691,10 @@ static int ath10k_core_copy_target_iram(struct ath10k *ar)
u32 len, remaining_len;
hw_mem = ath10k_coredump_get_mem_layout(ar);
- if (!hw_mem)
+ if (!hw_mem) {
+ ath10k_warn(ar, "No hardware memory");
return -ENOMEM;
+ }
for (i = 0; i < hw_mem->region_table.size; i++) {
tmp = &hw_mem->region_table.regions[i];
@@ -2702,8 +2704,10 @@ static int ath10k_core_copy_target_iram(struct ath10k *ar)
}
}
- if (!mem_region)
+ if (!mem_region) {
+ ath10k_warn(ar, "No memory region");
return -ENOMEM;
+ }
for (i = 0; i < ar->wmi.num_mem_chunks; i++) {
if (ar->wmi.mem_chunks[i].req_id ==
@@ -2917,7 +2921,6 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode,
if (status) {
ath10k_warn(ar, "failed to copy target iram contents: %d",
status);
- goto err_hif_stop;
}
}