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>
class += 2;
/* Any special action if a > b? */
}
- match |= (a <= c && c <= b);
+ if (a <= c && c <= b)
+ match = true;
} while ((a = *class++) != ']');
if (match == inverted)