mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibC: Fix clang-tidy warning about else-after-return in errno handling
This commit is contained in:
parent
b4c607a8da
commit
e62a2b7cf8
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…
Add table
Add a link
Reference in a new issue