Fixed some warnings flagged by IAR C-STAT static analysis tool.
This commit is contained in:
@@ -103,13 +103,11 @@ void Send_I_Am(
|
||||
/* send data */
|
||||
bytes_sent = datalink_send_pdu(&dest, &npdu_data, &buffer[0], pdu_len);
|
||||
|
||||
#if PRINT_ENABLED
|
||||
if (bytes_sent <= 0) {
|
||||
#if PRINT_ENABLED
|
||||
fprintf(stderr, "Failed to Send I-Am Reply (%s)!\n", strerror(errno));
|
||||
}
|
||||
#else
|
||||
bytes_sent = bytes_sent;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/** Encode an I Am message to be unicast directly back to the src.
|
||||
@@ -189,6 +187,6 @@ void Send_I_Am_Unicast(
|
||||
if (bytes_sent <= 0)
|
||||
fprintf(stderr, "Failed to Send I-Am Reply (%s)!\n", strerror(errno));
|
||||
#else
|
||||
bytes_sent = bytes_sent;
|
||||
(void)bytes_sent;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user