Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3986351 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: print return value for modem_shutdown_msg



Print return value if modem shutdown message send failed.

CRs-Fixed: 2283477
Change-Id: I893faa74335a0a658c9c2ec23983b7b3509e92bd
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 952512e3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1211,8 +1211,10 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
		return NOTIFY_OK;

	if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed) {
		if (wlfw_send_modem_shutdown_msg(priv))
			icnss_pr_dbg("Fail to send modem shutdown Indication\n");
		ret = wlfw_send_modem_shutdown_msg(priv);
		if (ret)
			icnss_pr_err("Fail to send modem shutdown Indication %d\n",
				     ret);
	}

	if (test_bit(ICNSS_PDR_REGISTERED, &priv->state)) {