Skip to content

Commit

Permalink
[core] remove redundant namespace usage (openthread#10730)
Browse files Browse the repository at this point in the history
This commit removes redundant namespace qualifiers from two instances
within core modules, preventing potential build warnings with certain
toolchains.
  • Loading branch information
abtink authored Sep 20, 2024
1 parent 944a246 commit 3074451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/mac/mac_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/thread/mle_tlvs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3074451

Please sign in to comment.