mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 23:57:46 +00:00
[mac-frame] remove unused variable in TxFrame::ProcessTransmitAesCcm() (#5185)
Eliminated an unused variable discovered when building using IAR.
This commit is contained in:
@@ -1040,12 +1040,11 @@ void TxFrame::ProcessTransmitAesCcm(const ExtAddress &aExtAddress)
|
||||
uint8_t nonce[Crypto::AesCcm::kNonceSize];
|
||||
uint8_t tagLength;
|
||||
Crypto::AesCcm aesCcm;
|
||||
otError error;
|
||||
|
||||
VerifyOrExit(GetSecurityEnabled(), OT_NOOP);
|
||||
|
||||
SuccessOrExit(error = GetSecurityLevel(securityLevel));
|
||||
SuccessOrExit(error = GetFrameCounter(frameCounter));
|
||||
SuccessOrExit(GetSecurityLevel(securityLevel));
|
||||
SuccessOrExit(GetFrameCounter(frameCounter));
|
||||
|
||||
Crypto::AesCcm::GenerateNonce(aExtAddress, frameCounter, securityLevel, nonce);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user