]> git.baikalelectronics.ru Git - kernel.git/commit
xen-pciback: simplify vpci's find hook
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Apr 2021 14:37:58 +0000 (16:37 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 23 Apr 2021 07:53:24 +0000 (09:53 +0200)
commit0fcd62e207910edaea7f5a3c69b8ac21b1844053
tree0b32fbf3168b7c9ecbbf25e0d5850be0af1b273f
parent38d6c35e530b46d24e4f7db3109ca74c606c8179
xen-pciback: simplify vpci's find hook

There's no point in comparing SBDF - we can simply compare the struct
pci_dev pointers. If they weren't the same for a given device, we'd have
bigger problems from having stored a stale pointer.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/158273a2-d1b9-3545-b25d-affca867376c@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xen-pciback/vpci.c