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

Commit bfd92509 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Report error when return value is not DIAG_DCI_NO_ERROR



During initial handshake with remote DCI channel report error
while sending masks to remote processor only if the error is
not DIAG_DCI_NO_ERROR.

Change-Id: Id58777a6138bb395408ea55b4d5f91e2974a5c65
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent 0885c924
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -918,17 +918,15 @@ static void dci_process_ctrl_handshake_pkt(unsigned char *buf, int len,
	if (header->magic == DCI_MAGIC) {
		dci_channel_status[token].open = 1;
		err = dci_ops_tbl[token].send_log_mask(token);
		if (err) {
		if (err && err != DIAG_DCI_NO_ERROR)
			pr_err("diag: In %s, unable to send log mask to token: %d, err: %d\n",
			       __func__, token, err);
		}
		err = dci_ops_tbl[token].send_event_mask(token);
		if (err) {
		if (err && err != DIAG_DCI_NO_ERROR)
			pr_err("diag: In %s, unable to send event mask to token: %d, err: %d\n",
			       __func__, token, err);
	}
}
}

void extract_dci_ctrl_pkt(unsigned char *buf, int len, int token)
{