/* This function removes the first hbq buffer on an hbq list and returns a pointer to that buffer. If it finds no buffers on the list it returns NULL.  */
static struct hbq_dmabuf* lpfc_sli_hbqbuf_get(struct list_head *rb_list)
/* This function removes the first hbq buffer on an hbq list and returns a pointer to that buffer. If it finds no buffers on the list it returns NULL.  */
static struct hbq_dmabuf* lpfc_sli_hbqbuf_get(struct list_head *rb_list)
{
	struct lpfc_dmabuf *d_buf;
	list_remove_head(rb_list, d_buf, struct lpfc_dmabuf, list);
	if (!d_buf)
		return NULL;
	return container_of(d_buf, struct hbq_dmabuf, dbuf);
}