]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/safe_close-no-if.cocci
Merge pull request #32963 from yuwata/test-64-btrfs
[thirdparty/systemd.git] / coccinelle / safe_close-no-if.cocci
CommitLineData
64b92d63 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
7f6e12b0
LP
2@@
3expression fd;
4@@
5- if (fd >= 0) {
6- fd = safe_close(fd);
7- }
8+ fd = safe_close(fd);