Skip to content

Commit 0a94172

Browse files
author
Hasnain Virk
committed
Fixing coverity findings
A couple of the coverity analysis findings are being treated here. For the rest there will be a separate PR.
1 parent 7818733 commit 0a94172

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/lorawan/lorastack/mac/LoRaMac.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,6 @@ uint8_t LoRaMac::get_max_possible_tx_size(uint8_t fopts_len)
18561856
max_possible_payload_size = allowed_frm_payload_size - fopts_len;
18571857
} else {
18581858
max_possible_payload_size = allowed_frm_payload_size;
1859-
fopts_len = 0;
18601859
_mac_commands.clear_command_buffer();
18611860
_mac_commands.clear_repeat_buffer();
18621861
}

features/lorawan/lorastack/phy/LoRaPHY.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ SPDX-License-Identifier: BSD-3-Clause
3636
#define CHANNELS_IN_MASK 16
3737

3838
LoRaPHY::LoRaPHY()
39-
: _radio(NULL)
39+
: _radio(NULL),
40+
_lora_time(NULL)
4041
{
4142
memset(&phy_params, 0, sizeof(phy_params));
4243
}

0 commit comments

Comments
 (0)