pci_add_capability: remove duplicate comments
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>
Tue, 14 Jul 2015 08:16:11 +0000 (16:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 Jul 2015 11:19:41 +0000 (14:19 +0300)
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c

index 442f822f4242f4ac94834f5de4d9d4a7c6650a95..a017614d488add75903317aefcb251e5b01e2e3c 100644 (file)
@@ -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)
 {