MutableFire opened a new pull request, #1829: URL: https://github.com/apache/cloudberry/pull/1829
## Summary This PR removes redundant `return;` statements at the end of functions with `void` return type in `contrib/interconnect/udp/ic_udpifc.c`. ## Motivation In C, reaching the closing brace `}` of a `void` function implicitly returns control to the caller. Explicit `return;` statements in these positions are unnecessary noise that clutters the code. Removing them aligns the code with common C style guidelines and improves readability. ## Changes Removed trailing `return;` from the following functions: - `addCursorIcEntry` - `setupUDPListeningSocket` (both exit paths) - `ic_set_pthread_sigmasks` - `ic_reset_pthread_sigmasks` - `InitMotionUDPIFC` - `connDelHash` - `icBufferListCheck` - `markUDPConnInactiveIFC` - `DeregisterReadInterestUDP` - `sendOnce` - `SendDummyPacket` (both exit paths) ## Testing - No logical changes were made; behavior remains identical. - Existing CI tests should pass without modification. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
