Commit 737133a6 authored by Kiara Navarro's avatar Kiara Navarro Committed by Alberto Escolar
Browse files

mgmt: ec_host_cmd: remove response leftovers

Remove `res` variable since it was not used in any part of `rx_timeout`
function.

Signed-off-by: default avatarKiara Navarro <knavarro@paltatech.com>
parent 09d61970
Loading
Loading
Loading
Loading
+2 −3
Changes for subsys/mgmt/ec_host_cmd/backends/ec_host_cmd_backend_uart.c: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -123,12 +123,11 @@ static void rx_timeout(struct k_work *work)
	struct k_work_delayable *dwork = k_work_delayable_from_work(work);
	struct ec_host_cmd_uart_ctx *hc_uart =
		CONTAINER_OF(dwork, struct ec_host_cmd_uart_ctx, timeout_work);
	int res;

	LOG_ERR("Request error in state: %s", state_name[hc_uart->state]);

	res = uart_rx_disable(hc_uart->uart_dev);
	res = uart_rx_enable(hc_uart->uart_dev, hc_uart->rx_ctx->buf, hc_uart->rx_buf_size, 0);
	uart_rx_disable(hc_uart->uart_dev);
	uart_rx_enable(hc_uart->uart_dev, hc_uart->rx_ctx->buf, hc_uart->rx_buf_size, 0);

	hc_uart->state = UART_HOST_CMD_READY_TO_RX;
}