[libvirt] [PATCH 6/8] virHostdevFindUSBDevice: Simplify flow a bit

Ján Tomko jtomko at redhat.com
Thu Jun 20 07:33:01 UTC 2019


On Tue, Jun 18, 2019 at 03:04:25PM +0200, Michal Privoznik wrote:
>When looking up a USB device by vendor the
>virUSBDeviceFindByVendor() is used. The function returns number
>of items found. But the logic in caller to process it is
>needlessly complicated.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/util/virhostdev.c | 13 +++++--------
> 1 file changed, 5 insertions(+), 8 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190620/ff08a35a/attachment-0001.sig>


More information about the libvir-list mailing list