LibC: Fix clang-tidy warning about else-after-return in errno handling

This commit is contained in:
Andreas Kling 2019-08-15 20:25:27 +02:00
parent b4c607a8da
commit e62a2b7cf8
Notes: sideshowbarker 2024-07-19 12:40:26 +09:00

View File

@ -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