]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/empty-or-root.cocci
licensing: add spdx to our .cocci files
[thirdparty/systemd.git] / coccinelle / empty-or-root.cocci
CommitLineData
64b92d63 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
57ea45e1
LP
2@@
3expression s;
4@@
5- (isempty(s) || path_equal(s, "/"))
6+ empty_or_root(s)
7@@
8expression s;
9@@
10- (!isempty(s) && !path_equal(s, "/"))
11+ !empty_or_root(s)