All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] pcie: remove duplicate assertion
@ 2016-12-23  2:16 ` Cao jin
  0 siblings, 0 replies; 6+ messages in thread
From: Cao jin @ 2016-12-23  2:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst, marcel, qemu-trivial

"size >= 8" connote "size > 0"

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
 hw/pci/pcie.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index 39b10b852d91..f864c5cd5458 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -668,7 +668,6 @@ void pcie_add_capability(PCIDevice *dev,
     uint16_t next;
 
     assert(offset >= PCI_CONFIG_SPACE_SIZE);
-    assert(offset < offset + size);
     assert(offset + size <= PCIE_CONFIG_SPACE_SIZE);
     assert(size >= 8);
     assert(pci_is_express(dev));
-- 
2.1.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-10  8:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-23  2:16 [Qemu-trivial] [PATCH] pcie: remove duplicate assertion Cao jin
2016-12-23  2:16 ` [Qemu-devel] " Cao jin
2017-01-09 22:37 ` [Qemu-trivial] " Michael S. Tsirkin
2017-01-09 22:37   ` [Qemu-devel] " Michael S. Tsirkin
2017-01-10  8:46   ` [Qemu-trivial] " Cao jin
2017-01-10  8:46     ` [Qemu-devel] " Cao jin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.