On Tue, 15 Sep 2020 15:14:40 -0400 Matthew Rosato <mjrosato@xxxxxxxxxxxxx> wrote: > Rather than duplicating the same loop in multiple locations, > create a static function to do the work. > > Signed-off-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx> > --- > hw/vfio/common.c | 21 +++++++++++++-------- > 1 file changed, 13 insertions(+), 8 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>