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

Commit b71a3c8b authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Report error when return value is not DIAG_DCI_NO_ERROR"

parents 661ce944 bfd92509
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line 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) {
	if (header->magic == DCI_MAGIC) {
		dci_channel_status[token].open = 1;
		dci_channel_status[token].open = 1;
		err = dci_ops_tbl[token].send_log_mask(token);
		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",
			pr_err("diag: In %s, unable to send log mask to token: %d, err: %d\n",
			       __func__, token, err);
			       __func__, token, err);
		}
		err = dci_ops_tbl[token].send_event_mask(token);
		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",
			pr_err("diag: In %s, unable to send event mask to token: %d, err: %d\n",
			       __func__, token, err);
			       __func__, token, err);
	}
	}
}
}
}


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