mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 17:37:46 +00:00
[core] remove redundant namespace usage (#10730)
This commit removes redundant namespace qualifiers from two instances within core modules, preventing potential build warnings with certain toolchains.
This commit is contained in:
@@ -736,7 +736,7 @@ void Frame::SetFrameCounter(uint32_t aFrameCounter)
|
||||
|
||||
LittleEndian::WriteUint32(aFrameCounter, &mPsdu[index]);
|
||||
|
||||
static_cast<Mac::TxFrame *>(this)->SetIsHeaderUpdated(true);
|
||||
static_cast<TxFrame *>(this)->SetIsHeaderUpdated(true);
|
||||
}
|
||||
|
||||
const uint8_t *Frame::GetKeySource(void) const
|
||||
|
||||
@@ -59,7 +59,7 @@ bool RouteTlv::IsValid(void) const
|
||||
VerifyOrExit(GetLength() >= sizeof(mRouterIdSequence) + sizeof(mRouterIdMask));
|
||||
|
||||
numAllocatedIds = mRouterIdMask.GetNumberOfAllocatedIds();
|
||||
VerifyOrExit(numAllocatedIds <= Mle::kMaxRouters);
|
||||
VerifyOrExit(numAllocatedIds <= kMaxRouters);
|
||||
|
||||
isValid = (GetRouteDataLength() >= numAllocatedIds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user