diff --git a/src/mac/LoRaMac.c b/src/mac/LoRaMac.c index 0b6892094..3a5b3d606 100644 --- a/src/mac/LoRaMac.c +++ b/src/mac/LoRaMac.c @@ -2290,11 +2290,8 @@ static void ProcessMacCommands( uint8_t *payload, uint8_t macIndex, uint8_t comm } while( payload[macIndex++] == SRV_MAC_LINK_ADR_REQ ); - if( macIndex < commandsSize ) - { - // Decrease the index such that it points to the next MAC command - macIndex--; - } + // Decrease the index such that it points to the next MAC command + macIndex--; } else {