Skip to content

Commit 786a3c9

Browse files
committed
More MISRA fixes
1 parent cc0e135 commit 786a3c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/FreeRTOS_DNS.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const MACAddress_t xLLMNR_MacAddress = { { 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfc }
6363
/** @brief The IPv6 link-scope multicast MAC address */
6464
const MACAddress_t xLLMNR_MacAddressIPv6 = { { 0x33, 0x33, 0x00, 0x01, 0x00, 0x03 } };
6565

66-
#if ( ( ipconfigUSE_LLMNR != 1 ) && ( ipconfigUSE_IPv6 != 0 ) )
66+
#if ( ( ipconfigUSE_LLMNR != 0 ) && ( ipconfigUSE_IPv6 != 0 ) )
6767
/** @brief The IPv6 link-scope multicast address */
6868
const IPv6_Address_t ipLLMNR_IP_ADDR_IPv6 =
6969
{
@@ -86,7 +86,7 @@ const MACAddress_t xMDNS_MacAddress = { { 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb } }
8686
/** @brief The IPv6 multicast DNS MAC address. */
8787
const MACAddress_t xMDNS_MacAddressIPv6 = { { 0x33, 0x33, 0x00, 0x00, 0x00, 0xFB } };
8888

89-
#if ( ( ipconfigUSE_MDNS != 1 ) && ( ipconfigUSE_IPv6 != 0 ) )
89+
#if ( ( ipconfigUSE_MDNS != 0 ) && ( ipconfigUSE_IPv6 != 0 ) )
9090
/** @brief multicast DNS IPv6 address */
9191
const IPv6_Address_t ipMDNS_IP_ADDR_IPv6 =
9292
{

source/FreeRTOS_IP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ static BaseType_t xIPTaskInitialised = pdFALSE;
209209
/* MISRA Ref 8.13.1 [Not decorating a pointer to const parameter with const] */
210210
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-813 */
211211
/* coverity[misra_c_2012_rule_8_13_violation] */
212+
/* coverity[misra_c_2012_rule_17_11_violation] */
212213
static void prvIPTask( void * pvParameters )
213214
{
214215
/* Just to prevent compiler warnings about unused parameters. */
@@ -224,7 +225,6 @@ static void prvIPTask( void * pvParameters )
224225
prvProcessIPEventsAndTimers();
225226
}
226227

227-
return;
228228
}
229229
/*-----------------------------------------------------------*/
230230

0 commit comments

Comments
 (0)