Message ID | 1436773597-3762-1-git-send-email-chenhanxiao@cn.fujitsu.com |
---|---|
State | New |
Headers | show |
On Mon, Jul 13, 2015 at 03:46:37PM +0800, Chen Hanxiao wrote: > Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> > --- > hw/pci/pci.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/hw/pci/pci.c b/hw/pci/pci.c > index 442f822..dfd2abc 100644 > --- a/hw/pci/pci.c > +++ b/hw/pci/pci.c > @@ -2101,12 +2101,10 @@ static void pci_del_option_rom(PCIDevice *pdev) > } > > /* > - * if !offset > - * Reserve space and add capability to the linked list in pci config space > - * > * if offset = 0, > * Find and reserve space and add capability to the linked list > - * in pci config space */ > + * in pci config space > + * / > int pci_add_capability(PCIDevice *pdev, uint8_t cap_id, > uint8_t offset, uint8_t size) > { This doesn't compile. > -- > 2.1.0
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 442f822..dfd2abc 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -2101,12 +2101,10 @@ static void pci_del_option_rom(PCIDevice *pdev) } /* - * if !offset - * Reserve space and add capability to the linked list in pci config space - * * if offset = 0, * Find and reserve space and add capability to the linked list - * in pci config space */ + * in pci config space + * / int pci_add_capability(PCIDevice *pdev, uint8_t cap_id, uint8_t offset, uint8_t size) {
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- hw/pci/pci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)