summaryrefslogtreecommitdiffstats
path: root/coccinelle/bool-cast.cocci
blob: a3311f06599ab958e3063f3a01c8a8a6bb3d656f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
bool b;
expression y;
@@
- b = !!(y);
+ b = y;
@@
bool b;
expression y;
@@
- b = !!y;
+ b = y;