tree-wide: assorted coccinelle fixes

This commit is contained in:
Frantisek Sumsal
2020-10-09 15:02:23 +02:00
parent 44e66de0f2
commit d7a0f1f4f9
56 changed files with 351 additions and 399 deletions
+1 -2
View File
@@ -160,8 +160,7 @@ int khash_new_with_key(khash **ret, const char *algorithm, const void *key, size
/* Temporary fix for rc kernel bug: https://bugzilla.redhat.com/show_bug.cgi?id=1395896 */
(void) send(h->fd, NULL, 0, 0);
*ret = h;
h = NULL;
*ret = TAKE_PTR(h);
return 0;
}
+1 -4
View File
@@ -129,8 +129,5 @@ int socket_address_listen(
if (p)
(void) touch(p);
r = fd;
fd = -1;
return r;
return TAKE_FD(fd);
}