vfio/mdev: remove mtype_get_parent_dev
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2022 09:26:47 +0000 (11:26 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 4 Oct 2022 18:06:58 +0000 (12:06 -0600)
commitc7c1f38f6cba7e3249866c06639ea62755f0a24e
tree4266150081c8535a130ab2ec68ccac5bc9532cdb
parent062e720cd209d8091c4f3d118d93973f02209aca
vfio/mdev: remove mtype_get_parent_dev

Just open code the dereferences in the only user.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Link: https://lore.kernel.org/r/20220923092652.100656-10-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_ops.c
drivers/vfio/mdev/mdev_core.c
include/linux/mdev.h