mgmt: smp: Fix compilation problem

Fix problem with compilation due to incompatible type assignments.

Fixes #28031

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2020-09-04 08:01:14 +00:00 committed by Carles Cufí
parent 402a352279
commit 1d0fb46165

View file

@ -149,7 +149,8 @@ static uint16_t smp_shell_get_mtu(const struct net_buf *nb)
static int smp_shell_tx_raw(const void *data, int len, void *arg)
{
const struct shell_uart *const su = shell_backend_uart_get_ptr();
const struct shell *const sh = shell_backend_uart_get_ptr();
const struct shell_uart *const su = sh->iface->ctx;
const struct shell_uart_ctrl_blk *const scb = su->ctrl_blk;
const uint8_t *out = data;