mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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) { \
|
||||
errno = -rc; \
|
||||
return (bad_ret); \
|
||||
} else { \
|
||||
errno = 0; \
|
||||
return (good_ret); \
|
||||
} \
|
||||
errno = 0; \
|
||||
return (good_ret); \
|
||||
} while (0)
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
|
Loading…
Add table
Reference in a new issue