ck_bag: Operating on pointer to NULL is undefined behavior.

Remove NULL check from ck_bag_remove_spmc.
ck_pring
Samy Al Bahra 13 years ago
parent a6dce3abff
commit efe592cafa

@ -266,9 +266,6 @@ ck_bag_remove_spmc(struct ck_bag *bag, void *entry)
struct ck_bag_block *cursor, *copy, *prev;
uint16_t block_index, n_entries;
if (bag == NULL)
return -1;
cursor = bag->head;
prev = NULL;
while (cursor != NULL) {

Loading…
Cancel
Save