From 9d3d67d3d1f1f451dad5d16d8228b1b4b3ed9725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Mon, 30 Dec 2024 12:37:56 +0100 Subject: [PATCH] drivers: ieee802154: b91: fix status variable type in RX ISR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The status variable stores the return value of `net_recv_data`, which is an `int` and may be negative. Signed-off-by: Martin Jäger --- drivers/ieee802154/ieee802154_b91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ieee802154/ieee802154_b91.c b/drivers/ieee802154/ieee802154_b91.c index 0a28af4715d..2c2d6274885 100644 --- a/drivers/ieee802154/ieee802154_b91.c +++ b/drivers/ieee802154/ieee802154_b91.c @@ -260,7 +260,7 @@ static void b91_send_ack(uint8_t seq_num) /* RX IRQ handler */ static void b91_rf_rx_isr(void) { - uint8_t status; + int status; uint8_t length; uint8_t *payload; struct net_pkt *pkt;