]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/pciback: simplify pcistub device handling
authorJuergen Gross <jgross@suse.com>
Thu, 22 Sep 2016 08:45:39 +0000 (10:45 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:25 +0000 (15:55 -0500)
commit9f82bf9240f7fd91cc0a9f60c4d2fd096b07b360
treed65d18da2475bd78537d9c15eb8a2d04d18b5810
parent528eccbf07689f897f4881c4ea5a7d0d5bd1ce4d
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>
OraBug: 25497392

(cherry picked from commit 1af916b701db1a9905e559e742f45818eb233d12)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xen-pciback/pci_stub.c