On Tue, Oct 09, 2012 at 02:13:23PM +0200, Jiri Denemark wrote:
The code which looks up a USB device specified by hostdev is duplicated in two places. This patch creates a dedicated function that can be called in both places. --- src/qemu/qemu_hostdev.c | 73 +++++++++++++++++++++++++++---------------------- src/qemu/qemu_hostdev.h | 1 + src/qemu/qemu_hotplug.c | 33 +--------------------- 3 files changed, 42 insertions(+), 65 deletions(-)
ACK Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|