struct qproc *qproc = dev;
size_t len;
char *msg;
- int ret;
msg = qcom_smem_get(-1, qproc->crash_reason, &len);
if (IS_ERR(msg) && len > 0 && msg[0])
rproc_report_crash(qproc->rproc, RPROC_FATAL_ERROR);
- if (!ret)
+ if (IS_ERR(msg))
msg[0] = '\0';
return IRQ_HANDLED;