[mac-frame] remove unused variable in TxFrame::ProcessTransmitAesCcm() (#5185)

Eliminated an unused variable discovered when building using IAR.
This commit is contained in:
Gary Palmer
2020-07-02 15:49:06 -07:00
committed by GitHub
parent 4584deeae0
commit 5f0e36eeb2
+2 -3
View File
@@ -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);