]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib: glob: replace bitwise OR with logical operation on boolean
authorJosh Law <objecting@objecting.org>
Sun, 1 Mar 2026 15:21:42 +0000 (15:21 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:37 +0000 (21:19 -0700)
commit33a3dd9bfd410044225aa9f812102055d0e21d59
tree214129a146a7d40b7cd8006d271647e011a70914
parentf5e74cbdbea32e3bf0bcd8d32e7ac8c90518e359
lib: glob: replace bitwise OR with logical operation on boolean

Using bitwise OR (|=) on a boolean variable is valid C, but replacing it
with a direct logical assignment makes the intent clearer and appeases
strict static analysis tools.

Link: https://lkml.kernel.org/r/20260301152143.2572137-2-objecting@objecting.org
Signed-off-by: Josh Law <objecting@objecting.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/glob.c