/* Processes a single line (fragment) coming from the mcumgr UART driver.  */
static void smp_uart_process_frag(struct uart_mcumgr_rx_buf *rx_buf)
/* Processes a single line (fragment) coming from the mcumgr UART driver.  */
static void smp_uart_process_frag(struct uart_mcumgr_rx_buf *rx_buf)
{
	struct net_buf *nb;
	nb = mcumgr_serial_process_frag(&smp_uart_rx_ctxt,
					rx_buf->data, rx_buf->length);
	uart_mcumgr_free_rx_buf(rx_buf);
	if (nb != NULL) {
		smp_rx_req(&smp_uart_transport, nb);
	}
}