Make VerifyOrExit() action argument optional. (#1554)

This commit is contained in:
Jonathan Hui
2017-04-05 09:44:22 -07:00
committed by GitHub
parent 02bd8e1ddd
commit 49ac7fbc2c
55 changed files with 366 additions and 332 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void Udp::HandleUdpReceive(otMessage *aMessage, const otMessageInfo *aMessageInf
uint16_t payloadLength = otMessageGetLength(aMessage) - otMessageGetOffset(aMessage);
char buf[512];
VerifyOrExit(payloadLength <= sizeof(buf), ;);
VerifyOrExit(payloadLength <= sizeof(buf));
otMessageRead(aMessage, otMessageGetOffset(aMessage), buf, payloadLength);
if (buf[payloadLength - 1] == '\n')