/* Check whether response ID match the command ID in the transfer pending list. If a match is found in the transfer pending list, it clears the transfer pending list and return the matched command ID.  */
static int get_and_clr_transfer(u32 *xfer_pending_list, size_t list_size, u8 id)
/* Check whether response ID match the command ID in the transfer pending list. If a match is found in the transfer pending list, it clears the transfer pending list and return the matched command ID.  */
static int get_and_clr_transfer(u32 *xfer_pending_list, size_t list_size, u8 id)
{
	int i;
	for (i = 0; i < list_size; i++) {
		if (id != xfer_pending_list[i])
			continue;
		xfer_pending_list[i] = 0;
		return id;
	}
	return 0;
}