/* Return value: Position of the added entry in the array  */
static int pcie_port_msix_add_entry(struct msix_entry *entries, int new_entry, int nr_entries)
/* Return value: Position of the added entry in the array  */
static int pcie_port_msix_add_entry(struct msix_entry *entries, int new_entry, int nr_entries)
{
	int j;
	for (j = 0; j < nr_entries; j++)
		if (entries[j].entry == new_entry)
			return j;
	entries[j].entry = new_entry;
	return j;
}