From 30744516188431b50090ddbe63f8dcea2a5ca019 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 20 Sep 2024 07:29:18 -0700 Subject: [PATCH] [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. --- src/core/mac/mac_frame.cpp | 2 +- src/core/thread/mle_tlvs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/mac/mac_frame.cpp b/src/core/mac/mac_frame.cpp index 8400a194f..9e76da0cd 100644 --- a/src/core/mac/mac_frame.cpp +++ b/src/core/mac/mac_frame.cpp @@ -736,7 +736,7 @@ void Frame::SetFrameCounter(uint32_t aFrameCounter) LittleEndian::WriteUint32(aFrameCounter, &mPsdu[index]); - static_cast(this)->SetIsHeaderUpdated(true); + static_cast(this)->SetIsHeaderUpdated(true); } const uint8_t *Frame::GetKeySource(void) const diff --git a/src/core/thread/mle_tlvs.cpp b/src/core/thread/mle_tlvs.cpp index 8c0ac134b..050e145a6 100644 --- a/src/core/thread/mle_tlvs.cpp +++ b/src/core/thread/mle_tlvs.cpp @@ -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);