On Wed, Apr 14, 2021 at 03:54:48PM -0500, Jonathon Jongsma wrote: > Currently virMediatedDeviceGetIOMMUGroupDev() looks up the iommu group > number and uses that to construct a path to the iommu group device. > virMediatedDeviceGetIOMMUGroupNum() then uses that device path and takes > the basename to get the group number. That's unnecessary extra string > manipulation for *GroupNum(). Reverse the implementations and make > *GroupDev() call *GroupNum(). > > Signed-off-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx> > Reviewed-by: Laine Stump <laine@xxxxxxxxxx> > --- Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>