-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
exit: return
idiom from src/inet and src/transport (#6025)
* Remove `exit: return` idiom from src/inet and src/transport #### Problem The `Exit` group of error-handling macros inhibit scoping, and are unnecessary when there is no cleanup at the `exit:` label. #### Summary of Changes - Remove `exit: return` idiom from src/lib, replacing `Exit` macros with corresponding `Return` macros. - Incidentally fixed a bug in `RawEndPoint::BindInterface` and `UDPEndPoint::BindInterface` that could leave the LwIP lock held by calling `SuccessOrExit()` within a locked section.
- Loading branch information
1 parent
381440f
commit 88780da
Showing
10 changed files
with
227 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.