]> xenbits.xensource.com Git - people/larsk/xen.git/commit
libxl_pci: Coding style of do_pci_add
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 9 May 2019 17:08:09 +0000 (18:08 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Sep 2019 09:42:43 +0000 (10:42 +0100)
commit60fce0ec6b5142e6cccc962c9a0820573eb0468f
treec8fae18b99e9a3950f5f9d6d92a886d4235784a6
parentef73b926bb74bdce22053e3e41cfbb7ae9259fa8
libxl_pci: Coding style of do_pci_add

do_pci_add is going to be asynchronous, so we start by having a single
path out of the function. All `return`s instead set rc and goto out.

While here, some use of `rc' was used to store the return value of
libxc calls, change them to store into `r'. Also, add the value of `r'
in the error message of those calls.

There were an `out' label that was use it seems to skip setting up the
IRQ, the label has been renamed to `out_no_irq'.

No functional changes.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c