pci-assign: use monitor_handle_fd_param
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Sep 2012 14:50:32 +0000 (16:50 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 26 Sep 2012 15:42:19 +0000 (12:42 -0300)
commit9a3a88956c7f32130ad20011f7c3c161fa5876d8
treecc67bd956555d12298fe7b1db2a1f564075bb0b9
parent1057725f6629fc2771a294a92ce8eedb92c86fe8
pci-assign: use monitor_handle_fd_param

There is no need to open-code the choice between a file descriptor
number or a named one.  Just use monitor_handle_fd_param, which
also takes care of printing the error message.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
hw/kvm/pci-assign.c