]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/zlib: drop EQUAL macro
authorYury Norov <yury.norov@gmail.com>
Wed, 5 Feb 2025 21:29:32 +0000 (16:29 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 05:30:49 +0000 (22:30 -0700)
commitb115b6eccdf5a09909b1db6f1c37074923337f5c
tree3beef3da0fac7087a59eb81c65726f6744cea47e
parent6ba31721aeef048922672d49d48a7f3826005f7d
lib/zlib: drop EQUAL macro

The macro is prehistoric, and only exists to help those readers who don't
know what memcmp() returns if memory areas differ.  This is pretty well
documented, so the macro looks excessive.

Now that the only user of the macro depends on DEBUG_ZLIB config, GCC
warns about unused macro if the library is built with W=2 against
defconfig.  So drop it for good.

Link: https://lkml.kernel.org/r/20250205212933.68695-1-yury.norov@gmail.com
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Cc: Heiko Carsten <heiko.carstens@de.ibm.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/zlib_deflate/deflate.c