Skip to contentSkip to conversation

pci_add_capability: remove duplicate comments

PATCH Superseded Chen Hanxiao 2 participants 2 messages Jul 13, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci_add_capability: remove duplicate comments

---
 hw/pci/pci.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
hw/pci/pci.c +2 -4
index 442f822..dfd2abc 100644
@@ -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)
 {
Signature · 1 line
2.1.0
#1 lore raw
Quoted 14 lines · Chen Hanxiao
---
 hw/pci/pci.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
hw/pci/pci.c +0 -1
index 442f822..dfd2abc 100644
@@ -2101,12 +2101,10 @@ static void pci_del_option_rom(PCIDevice *pdev)
 }
 
 /*
- * if !offset

hw/pci/pci.c static void pci_del_option_rom(PCIDevice *pdev) · line 2110

Quoted 10 lines
hw/pci/pci.c +2 -3
- * 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.

Quoted 2 lines
Signature · 1 line
2.1.0