xen/pciback: simplify pcistub device handling
authorJuergen Gross <jgross@suse.com>
Thu, 22 Sep 2016 08:45:39 +0000 (10:45 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 30 Sep 2016 10:48:33 +0000 (11:48 +0100)
commit1af916b701db1a9905e559e742f45818eb233d12
tree03ee3cfec7d54701da6ec6af1d022d54bea03bbc
parent72a9b186292d98494f222226cfd24a1621796209
xen/pciback: simplify pcistub device handling

The Xen pciback driver maintains a list of all its seized devices.
There are two functions searching the list for a specific device with
basically the same semantics just returning different structures in
case of a match.

Split out the search function.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-pciback/pci_stub.c