Received: from eggs.gnu.org ([2001:4830:134:3::10]:37299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XORgG-0001Gk-3u for qemu-devel@nongnu.org; Mon, 01 Sep 2014 09:30:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XORg8-0007n8-AJ for qemu-devel@nongnu.org; Mon, 01 Sep 2014 09:30:00 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:39859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XORg7-0007f9-Fd for qemu-devel@nongnu.org; Mon, 01 Sep 2014 09:29:52 -0400 From: Date: Mon, 1 Sep 2014 21:29:19 +0800 Message-ID: <1409578159-9576-4-git-send-email-arei.gonglei@huawei.com> In-Reply-To: <1409578159-9576-1-git-send-email-arei.gonglei@huawei.com> References: <1409578159-9576-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v3 3/3] pcie: remove confused comments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.crosthwaite@xilinx.com, weidong.huang@huawei.com, mst@redhat.com, marcel.a@redhat.com, luonengjun@huawei.com, peter.huangpeng@huawei.com, armbru@redhat.com, Gonglei , imammedo@redhat.com, pbonzini@redhat.com, afaerber@suse.de From: Gonglei The below functions is not allocation funcitons, but find helper function. The only allocation function is pcie_add_capability(), but its argument names is not the same with the comments. So remove this comments which make people confused. Signed-off-by: Gonglei --- hw/pci/pcie.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 30dd481..75b70d0 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -528,14 +528,6 @@ bool pcie_cap_is_arifwd_enabled(const PCIDevice *dev) PCI_EXP_DEVCTL2_ARI; } -/************************************************************************** - * pci express extended capability allocation functions - * uint16_t ext_cap_id (16 bit) - * uint8_t cap_ver (4 bit) - * uint16_t cap_offset (12 bit) - * uint16_t ext_cap_size - */ - static uint16_t pcie_find_capability_list(PCIDevice *dev, uint16_t cap_id, uint16_t *prev_p) { -- 1.7.12.4