systemd/coccinelle/bool-cast.cocci

14 lines
147 B
Plaintext

/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
bool b;
expression y;
@@
- b = !!(y);
+ b = y;
@@
bool b;
expression y;
@@
- b = !!y;
+ b = y;