On Mon, Jul 10, 2023 at 07:59:21PM -0700, Yi Liu wrote: > This saves some lines when adding the kvm get logic for the vfio_device > cdev path. > > This also renames _vfio_device_get_kvm_safe() to be vfio_device_get_kvm_safe(). > > Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> > --- > drivers/vfio/group.c | 7 +------ > drivers/vfio/vfio.h | 6 +++--- > drivers/vfio/vfio_main.c | 5 ++++- > 3 files changed, 8 insertions(+), 10 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason