summaryrefslogtreecommitdiff
path: root/coccinelle/empty-or-root.cocci
blob: bf2f614da67ff298ed9c571697ab73fc3b5fb324 (plain)
1
2
3
4
5
6
7
8
9
10
@@
expression s;
@@
- (isempty(s) || path_equal(s, "/"))
+ empty_or_root(s)
@@
expression s;
@@
- (!isempty(s) && !path_equal(s, "/"))
+ !empty_or_root(s)