net: contiki: simplerdc: Fix an uninitialized variable warning
If retries are 0 (which should never be), ret will not be initialized. Change-Id: I8ef9a2ccbf89191e48d407fdb1292554fa8f15d9 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
77e09abdda
commit
8a574fdd67
1 changed files with 1 additions and 1 deletions
|
@ -171,10 +171,10 @@ static void init(void)
|
|||
static uint8_t send_packet(struct net_buf *buf,
|
||||
mac_callback_t sent_callback, void *ptr)
|
||||
{
|
||||
int ret = MAC_TX_OK;
|
||||
bool is_broadcast, ack_required;
|
||||
uint8_t attempts;
|
||||
uint8_t retries;
|
||||
int ret;
|
||||
|
||||
#ifdef SIMPLERDC_802154_ACK_REQ
|
||||
packetbuf_set_attr(buf, PACKETBUF_ATTR_MAC_ACK, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue