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