Merge pull request #17273 from mrc0mmand/coccinelle-check-for-bad-errno

coccinelle: resolve our own macros to avoid skipping functions
This commit is contained in:
Lennart Poettering
2020-10-12 11:39:25 +02:00
committed by GitHub
70 changed files with 635 additions and 432 deletions
+1 -2
View File
@@ -1393,13 +1393,12 @@ static int copy_quota_hierarchy(int fd, uint64_t old_subvol_id, uint64_t new_sub
}
for (j = 0; j < n_old_parent_qgroups; j++)
if (old_parent_qgroups[j] == old_qgroups[i]) {
if (old_parent_qgroups[j] == old_qgroups[i])
/* The old subvolume shared a common
* parent qgroup with its parent
* subvolume. Let's set up something
* similar in the destination. */
copy_from_parent = true;
}
}
if (!insert_intermediary_qgroup && !copy_from_parent)
+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);
}