From 763af19c5de7b880136cb654c6c174f7ea19d011 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 6 May 2026 20:59:44 -0700 Subject: [PATCH] [nexus] remove redundant cast in `SendMlrRequest()` (#13076) This commit removes a redundant `static_cast` when calling `Tlv::Append()` in `SendMlrRequest()` in `test_1_2_MATN_TC_21.cpp`. Since the method accepts `const void *` as its value argument, the explicit cast is unnecessary and can be safely removed to simplify the code. --- tests/nexus/test_1_2_MATN_TC_21.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nexus/test_1_2_MATN_TC_21.cpp b/tests/nexus/test_1_2_MATN_TC_21.cpp index a0e659b83..faae49957 100644 --- a/tests/nexus/test_1_2_MATN_TC_21.cpp +++ b/tests/nexus/test_1_2_MATN_TC_21.cpp @@ -111,7 +111,7 @@ void SendMlrRequest(Node &aSource, const Ip6::Address &aDestination, const void Coap::Message *message = aSource.Get().AllocateAndInitPriorityConfirmablePostMessage(kUriMlr); VerifyOrQuit(message != nullptr); - SuccessOrQuit(Tlv::Append(*message, static_cast(aAddressesData), aDataLength)); + SuccessOrQuit(Tlv::Append(*message, aAddressesData, aDataLength)); SuccessOrQuit(aSource.Get().SendMessageTo(*message, aDestination)); }