chiark / gitweb /
tree-wide: drop redundant if checks before safe_close()
[elogind.git] / coccinelle / safe_close-no-if.cocci
1 @@
2 expression fd;
3 @@
4 - if (fd >= 0) {
5 - fd = safe_close(fd);
6 - }
7 + fd = safe_close(fd);