Skip to content

Commit bffa66f

Browse files
ActoryOumoninom1
andauthored
Remove TODO words if there is nothing to do. (FreeRTOS#1142)
* Remove TODO words if there is nothing to do. * Update LPC54018 comment Co-authored-by: Monika Singh <[email protected]> --------- Co-authored-by: Monika Singh <[email protected]>
1 parent 86b16eb commit bffa66f

File tree

22 files changed

+19
-50
lines changed

22 files changed

+19
-50
lines changed

source/FreeRTOS_DNS.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@
161161

162162
/** @brief This global variable is being used to indicate to the driver which IP type
163163
* is preferred for name service lookup, either IPv6 or IPv4. */
164-
/* TODO: Fix IPv6 DNS query in Windows Simulator. */
165164
IPPreference_t xDNS_IP_Preference = xPreferenceIPv4;
166165

167166
/*-----------------------------------------------------------*/

source/FreeRTOS_DNS_Parser.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@
250250
* An error code (dnsPARSE_ERROR) if there was an error in the DNS response.
251251
* 0 if xExpected set to pdFALSE.
252252
*/
253-
/* TODO cross check again */
254253
uint32_t DNS_ParseDNSReply( uint8_t * pucUDPPayloadBuffer,
255254
size_t uxBufferLength,
256255
struct freertos_addrinfo ** ppxAddressInfo,
@@ -589,7 +588,7 @@
589588
}
590589

591590
/**
592-
* @brief perform a dns lookup in the local cache {TODO WRONG}
591+
* @brief Process DNS answer field in a DNS response packet from a DNS server.
593592
* @param[in] pxSet a set of variables that are shared among the helper functions.
594593
* @param[out] ppxAddressInfo a linked list storing the DNS answers.
595594
* @param[out] uxBytesRead total bytes consumed by the function
@@ -658,7 +657,7 @@
658657
}
659658
else if( pxSet->usType == ( uint16_t ) dnsTYPE_A_HOST )
660659
{
661-
pxSet->uxAddressLength = ipSIZE_OF_IPv4_ADDRESS; /*TODO check if fine */
660+
pxSet->uxAddressLength = ipSIZE_OF_IPv4_ADDRESS;
662661

663662
if( pxSet->uxSourceBytesRemaining >= ( sizeof( DNSAnswerRecord_t ) + pxSet->uxAddressLength ) )
664663
{

source/FreeRTOS_IP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ static eFrameProcessingResult_t prvProcessIPPacket( const IPPacket_t * pxIPPacke
19831983
}
19841984
}
19851985

1986-
if( eReturn != eWaitingARPResolution ) /*TODO eReturn != eReleaseBuffer */
1986+
if( eReturn != eWaitingARPResolution )
19871987
{
19881988
switch( ucProtocol )
19891989
{

source/FreeRTOS_Sockets.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,6 @@ static BaseType_t prvSocketBindAdd( FreeRTOS_Socket_t * pxSocket,
18341834
if( pxSocket->pxEndPoint != NULL )
18351835
{
18361836
pxSocket->xLocalAddress.ulIP_IPv4 = FreeRTOS_ntohl( pxSocket->pxEndPoint->ipv4_settings.ulIPAddress );
1837-
/*TODO Check if needed for ipv6 setting */
18381837
}
18391838
else
18401839
#endif /* ( ipconfigUSE_IPv4 != 0 ) */
@@ -4940,7 +4939,6 @@ void vSocketWakeUpUser( FreeRTOS_Socket_t * pxSocket )
49404939
/* coverity[misra_c_2012_rule_11_3_violation] */
49414940
const ListItem_t * pxEnd = ( ( const ListItem_t * ) &( xBoundTCPSocketsList.xListEnd ) );
49424941

4943-
/* __XX__ TODO ulLocalIP is not used, for misra compliance*/
49444942
( void ) ulLocalIP;
49454943

49464944
for( pxIterator = listGET_NEXT( pxEnd );

source/FreeRTOS_TCP_WIN.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@
10851085
/* See if there is more data in a contiguous block to make the
10861086
* SACK describe a longer range of data. */
10871087

1088-
/* TODO: SACK's may also be delayed for a short period
1088+
/* SACK's may also be delayed for a short period
10891089
* This is useful because subsequent packets will be SACK'd with
10901090
* single one message
10911091
*/

source/include/FreeRTOS_IP.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,8 @@ extern NetworkBufferDescriptor_t * pxARPWaitingNetworkBuffer;
485485
#define vPrintResourceStats() do {} while( ipFALSE_BOOL ) /**< ipconfigHAS_PRINTF is not defined. Define vPrintResourceStats to a do-while( 0 ). */
486486
#endif
487487

488-
#include "FreeRTOS_IP_Utils.h" /*TODO can be moved after other 2 includes */
489-
490-
488+
#include "FreeRTOS_IP_Utils.h"
491489
#include "FreeRTOS_IPv4.h"
492-
493490
#include "FreeRTOS_IPv6.h"
494491

495492
/* *INDENT-OFF* */

source/include/FreeRTOS_IPv4.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ struct xIP_PACKET;
6060

6161
/*
6262
* These functions come from the IPv4-only library.
63-
* TODO : They should get an extra parameter, the end-point
6463
* void FreeRTOS_SetIPAddress( uint32_t ulIPAddress );
6564
* void FreeRTOS_SetNetmask( uint32_t ulNetmask );
6665
* void FreeRTOS_SetGatewayAddress( uint32_t ulGatewayAddress );

source/portable/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_library( freertos_plus_tcp_port STATIC )
33
target_sources( freertos_plus_tcp_port
44
PRIVATE
55
BufferManagement/BufferAllocation_${FREERTOS_PLUS_TCP_BUFFER_ALLOCATION}.c
6-
# TODO: There's NetworkInterface/pic32mzef that has it's own BufferAllocation_2.c
6+
# Note: There's NetworkInterface/pic32mzef that has it's own BufferAllocation_2.c
77
)
88

99
target_include_directories( freertos_plus_tcp_port

source/portable/NetworkInterface/LPC17xx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ target_sources( freertos_plus_tcp_network_if
1515

1616
target_link_libraries(freertos_plus_tcp_network_if
1717
PRIVATE
18-
lpc17xx_driver # TODO
18+
lpc17xx_driver
1919
)
2020

2121
target_link_libraries( freertos_plus_tcp_network_if

source/portable/NetworkInterface/LPC18xx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ target_sources( freertos_plus_tcp_network_if
1515

1616
target_link_libraries(freertos_plus_tcp_network_if
1717
PRIVATE
18-
lpc18xx_driver # TODO
18+
lpc18xx_driver
1919
)
2020

2121
target_link_libraries( freertos_plus_tcp_network_if

0 commit comments

Comments
 (0)