summaryrefslogtreecommitdiffstats
path: root/coccinelle/empty-or-root.cocci
blob: d36f0c8b1bf6352a3cf897da141e3cffa06eeb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression s;
@@
- (isempty(s) || path_equal(s, "/"))
+ empty_or_root(s)
@@
expression s;
@@
- (!isempty(s) && !path_equal(s, "/"))
+ !empty_or_root(s)