]> git.hungrycats.org Git - linux/commit
lib/test_meminit: use && for bools
authorAlexander Potapenko <glider@google.com>
Mon, 4 May 2026 10:06:37 +0000 (12:06 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 2 Jun 2026 22:22:15 +0000 (15:22 -0700)
commit8e0c2085c978ed6d9764d79fc785920360096f21
tree78cc3a3ef0d35981d1468163e256284d491c649d
parent418bffb6ba2474f445305dd2a5173d8a9ce446b3
lib/test_meminit: use && for bools

As pointed out by Dan Carpenter, test_kmemcache() was using a bitwise AND
on two bools instead of a boolean AND.  Fix this for the sake of code
cleanliness.

Link: https://lore.kernel.org/20260504100637.1535762-1-glider@google.com
Fixes: 5015a300a522 ("lib: introduce test_meminit module")
Signed-off-by: Alexander Potapenko <glider@google.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/kernel-janitors/afOcIan1ap9kD26M@stanley.mountain/
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_meminit.c