summaryrefslogtreecommitdiffstats
path: root/coccinelle/safe_close-no-if.cocci
blob: 81c56785181946a4d36bd47b2bdb1b95c341c52d (plain)
1
2
3
4
5
6
7
@@
expression fd;
@@
- if (fd >= 0) {
- fd = safe_close(fd);
- }
+ fd = safe_close(fd);