]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/flags-set.cocci
logind: when we cannot attach a passed fd to a device, close it
[thirdparty/systemd.git] / coccinelle / flags-set.cocci
CommitLineData
d94a24ca
ZJS
1@@
2expression x, y;
3@@
4- ((x) & (y)) == (y)
5+ FLAGS_SET(x, y)
6@@
7expression x, y;
8@@
9- (x & (y)) == (y)
10+ FLAGS_SET(x, y)
11@@
12expression x, y;
13@@
14- ((x) & y) == y
15+ FLAGS_SET(x, y)