mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibC: Fix clang-tidy warning about else-after-return in errno handling
This commit is contained in:
parent
b4c607a8da
commit
e62a2b7cf8
Notes:
sideshowbarker
2024-07-19 12:40:26 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e62a2b7cf81
@ -8,10 +8,9 @@
|
||||
if (rc < 0) { \
|
||||
errno = -rc; \
|
||||
return (bad_ret); \
|
||||
} else { \
|
||||
errno = 0; \
|
||||
return (good_ret); \
|
||||
} \
|
||||
errno = 0; \
|
||||
return (good_ret); \
|
||||
} while (0)
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user