vfio: cleanup getting group fd
authorDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Mon, 17 Sep 2018 13:46:43 +0000 (15:46 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Oct 2018 00:58:32 +0000 (01:58 +0100)
commit4f5519ed8349347f60a2c3a7e9016c5660a47d87
tree99fc751a0045613364909ee4b6aedb5e830ab3b4
parentdb9d32b8b73e3fc9e16f8a38e5b7f66a5df0e36a
vfio: cleanup getting group fd

Factor out duplicated code.

Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c