]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/bool-cast.cocci
cocci: simplify some if checks
[thirdparty/systemd.git] / coccinelle / bool-cast.cocci
CommitLineData
5d904a6a
ZJS
1@@
2bool b;
3expression y;
4@@
5- b = !!(y);
6+ b = y;
7@@
8bool b;
9expression y;
10@@
11- b = !!y;
12+ b = y;