/* De-initialize a memory queue to be empty and invalid.  */
memq_link_t* memq_deinit(memq_link_t **head, memq_link_t **tail)
/* De-initialize a memory queue to be empty and invalid.  */
memq_link_t* memq_deinit(memq_link_t **head, memq_link_t **tail)
{
	memq_link_t *old_head;
	if (*head != *tail) {
		return NULL;
	}
	old_head = *head;
	*head = *tail = NULL;
	return old_head;
}