summaryrefslogtreecommitdiff
path: root/coccinelle/flags-set.cocci
Commit message (Collapse)AuthorAgeFilesLines
* Add macro for checking if some flags are setZbigniew Jędrzejewski-Szmek2018-06-041-0/+15
This way we don't need to repeat the argument twice. I didn't replace all instances. I think it's better to leave out: - asserts - comparisons like x & y == x, which are mathematically equivalent, but here we aren't checking if flags are set, but if the argument fits in the flags.