From e62a2b7cf8169ab65077efdd4731c225291b5bdf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 15 Aug 2019 20:25:27 +0200 Subject: [PATCH] LibC: Fix clang-tidy warning about else-after-return in errno handling --- Libraries/LibC/errno.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/LibC/errno.h b/Libraries/LibC/errno.h index 3d3bf85029..7ac77c5e42 100644 --- a/Libraries/LibC/errno.h +++ b/Libraries/LibC/errno.h @@ -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