mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00: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
1 changed files with 2 additions and 3 deletions
|
@ -8,10 +8,9 @@
|
||||||
if (rc < 0) { \
|
if (rc < 0) { \
|
||||||
errno = -rc; \
|
errno = -rc; \
|
||||||
return (bad_ret); \
|
return (bad_ret); \
|
||||||
} else { \
|
|
||||||
errno = 0; \
|
|
||||||
return (good_ret); \
|
|
||||||
} \
|
} \
|
||||||
|
errno = 0; \
|
||||||
|
return (good_ret); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
Loading…
Reference in a new issue