/* For 32 bit architectures, we use the pointer itself; for 64 bits, a 32-bit hash of the pointer. */
static struct wa_xfer* wa_xfer_get_by_id(struct wahc *wa, u32 id)
/* For 32 bit architectures, we use the pointer itself; for 64 bits, a 32-bit hash of the pointer. */
static struct wa_xfer* wa_xfer_get_by_id(struct wahc *wa, u32 id)
{
	unsigned long flags;
	struct wa_xfer *xfer_itr;
	spin_lock_irqsave(&wa->xfer_list_lock, flags);
	list_for_each_entry(xfer_itr, &wa->xfer_list, list_node) {
		if (id == xfer_itr->id) {
			wa_xfer_get(xfer_itr);
			goto out;
		}
	}
	xfer_itr = NULL;
out:
	spin_unlock_irqrestore(&wa->xfer_list_lock, flags);
	return xfer_itr;
}