mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 21:27:46 +00:00
[coap] remove functional code from assert (#3288)
This commit is contained in:
committed by
Jonathan Hui
parent
90dd7a42d0
commit
6a0f35c63c
@@ -304,7 +304,9 @@ public:
|
||||
*/
|
||||
static void RemoveFrom(Message &aMessage)
|
||||
{
|
||||
assert(aMessage.SetLength(aMessage.GetLength() - sizeof(EnqueuedResponseHeader)) == OT_ERROR_NONE);
|
||||
otError error = aMessage.SetLength(aMessage.GetLength() - sizeof(EnqueuedResponseHeader));
|
||||
assert(error == OT_ERROR_NONE);
|
||||
OT_UNUSED_VARIABLE(error);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user