diff mbox series

malloc.c: Remove bogus __nonnull attribute

Message ID 20230711135923.38979-1-alx@kernel.org
State New
Headers show
Series malloc.c: Remove bogus __nonnull attribute | expand

Commit Message

Alejandro Colomar July 11, 2023, 1:59 p.m. UTC
This function doesn't accept pointers.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
 malloc/malloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/malloc/malloc.c b/malloc/malloc.c
index e2f1a615a4..ec97a96f57 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1315,7 +1315,7 @@  nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    MINSIZE in case the value is less than MINSIZE, or 0 if any of the
    previous checks fail.  */
 static inline size_t
-checked_request2size (size_t req) __nonnull (1)
+checked_request2size (size_t req)
 {
   if (__glibc_unlikely (req > PTRDIFF_MAX))
     return 0;