1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00
systemd-stable/coccinelle/safe_close-no-if.cocci

8 lines
88 B
Plaintext
Raw Normal View History

@@
expression fd;
@@
- if (fd >= 0) {
- fd = safe_close(fd);
- }
+ fd = safe_close(fd);