summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/posix_memalign.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-25 19:24:38 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-25 20:35:03 +0100
commita984eb367c032dbe2577f01238c3d1268526be70 (patch)
tree437fef40379b2758b129ccea39df3570fa2d145e /lib/libc/stdlib/posix_memalign.c
parent8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff)
Clang-tidy fixes
Diffstat (limited to 'lib/libc/stdlib/posix_memalign.c')
-rw-r--r--lib/libc/stdlib/posix_memalign.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/posix_memalign.c b/lib/libc/stdlib/posix_memalign.c
index f76e63fe..251512a1 100644
--- a/lib/libc/stdlib/posix_memalign.c
+++ b/lib/libc/stdlib/posix_memalign.c
@@ -11,8 +11,7 @@ int posix_memalign(void **memptr, size_t alignment, size_t size)
*memptr = NULL;
- if (alignment < sizeof(void *) || alignment % sizeof(void *) != 0 ||
- (alignment & (alignment - 1)) != 0) {
+ if (alignment < sizeof(void *) || alignment % sizeof(void *) != 0 || (alignment & (alignment - 1)) != 0) {
return EINVAL;
}