From de687cb522e20bf7ec030fb09c8799fd8741c1df Mon Sep 17 00:00:00 2001 From: Stefan Baltruweit Date: Fri, 27 Sep 2024 11:19:13 +0200 Subject: [PATCH] Uncrustify --- source/portable/NetworkInterface/Zynq/NetworkInterface.c | 5 +++-- .../NetworkInterface/xilinx_ultrascale/NetworkInterface.c | 4 ++-- .../portable/NetworkInterface/xilinx_ultrascale/x_emacpsif.h | 2 +- .../NetworkInterface/xilinx_ultrascale/x_emacpsif_hw.h | 2 +- .../portable/NetworkInterface/xilinx_ultrascale/x_topology.h | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/source/portable/NetworkInterface/Zynq/NetworkInterface.c b/source/portable/NetworkInterface/Zynq/NetworkInterface.c index 7cf063df6..1a621f12c 100644 --- a/source/portable/NetworkInterface/Zynq/NetworkInterface.c +++ b/source/portable/NetworkInterface/Zynq/NetworkInterface.c @@ -286,8 +286,8 @@ static BaseType_t xZynqNetworkInterfaceInitialise( NetworkInterface_t * pxInterf { /* set the solicited-node multicast address */ for( NetworkEndPoint_t * pxEndPointIter = FreeRTOS_FirstEndPoint( pxInterface ); - pxEndPointIter != NULL; - pxEndPointIter = FreeRTOS_NextEndPoint( pxInterface, pxEndPointIter ) ) + pxEndPointIter != NULL; + pxEndPointIter = FreeRTOS_NextEndPoint( pxInterface, pxEndPointIter ) ) { if( pxEndPointIter->bits.bIPv6 != pdFALSE_UNSIGNED ) { @@ -302,6 +302,7 @@ static BaseType_t xZynqNetworkInterfaceInitialise( NetworkInterface_t * pxInterf #endif /* if ( ipconfigUSE_IPv6 == 0 ) */ pxEndPoint = FreeRTOS_NextEndPoint( pxInterface, pxEndPoint ); + if( pxEndPoint != NULL ) { /* If there is a second end-point, store the MAC diff --git a/source/portable/NetworkInterface/xilinx_ultrascale/NetworkInterface.c b/source/portable/NetworkInterface/xilinx_ultrascale/NetworkInterface.c index d5342b885..ddb690e09 100644 --- a/source/portable/NetworkInterface/xilinx_ultrascale/NetworkInterface.c +++ b/source/portable/NetworkInterface/xilinx_ultrascale/NetworkInterface.c @@ -351,8 +351,8 @@ static BaseType_t xUltrascaleNetworkInterfaceInitialise( NetworkInterface_t * px { /* set the solicited-node multicast address */ for( NetworkEndPoint_t * pxEndPointIter = FreeRTOS_FirstEndPoint( pxInterface ); - pxEndPointIter != NULL; - pxEndPointIter = FreeRTOS_NextEndPoint( pxInterface, pxEndPointIter ) ) + pxEndPointIter != NULL; + pxEndPointIter = FreeRTOS_NextEndPoint( pxInterface, pxEndPointIter ) ) { if( pxEndPointIter->bits.bIPv6 != pdFALSE_UNSIGNED ) { diff --git a/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif.h b/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif.h index 9171f509a..a2a1c04e9 100644 --- a/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif.h +++ b/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif.h @@ -159,7 +159,7 @@ void vInitialiseOnIndex( BaseType_t xIndex ); #ifdef __cplusplus - } /* extern "C" */ +} /* extern "C" */ #endif #endif /* __NETIF_XAXIEMACIF_H__ */ diff --git a/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_hw.h b/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_hw.h index 2c525027c..8e21b0815 100644 --- a/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_hw.h +++ b/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_hw.h @@ -34,7 +34,7 @@ #ifdef __cplusplus - } /* extern "C" */ +} /* extern "C" */ #endif #endif /* ifndef __XEMACPSIF_HW_H_ */ diff --git a/source/portable/NetworkInterface/xilinx_ultrascale/x_topology.h b/source/portable/NetworkInterface/xilinx_ultrascale/x_topology.h index 4fb93cb85..111582f64 100644 --- a/source/portable/NetworkInterface/xilinx_ultrascale/x_topology.h +++ b/source/portable/NetworkInterface/xilinx_ultrascale/x_topology.h @@ -39,7 +39,7 @@ }; #ifdef __cplusplus - } /* extern "C" */ +} /* extern "C" */ #endif #endif /* __XTOPOLOGY_H_ */