'vector_size' was set, but not used. No functional change.
Fixes: f6fef92ffaba ("pyjailhouse: sysfs_parser: Add more precise length of some extended caps") Signed-off-by: Andrej Utz <andrej....@st.oth-regensburg.de> --- pyjailhouse/sysfs_parser.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 67dc85d0..e6b07716 100644 --- a/pyjailhouse/sysfs_parser.py +++ b/pyjailhouse/sysfs_parser.py @@ -490,7 +490,7 @@ def parse_ivrs(pcidevices, ioapics): regions.append( MemRegion(mem_addr, mem_addr + mem_len - 1, 'ACPI IVRS', - comment)) + comment)) elif type == 0x40: raise RuntimeError( @@ -665,13 +665,13 @@ class PCICapability: len = 4 + (vsec_len >> 20) elif id == PCI_EXT_CAP_ID.ACS: len = 8 - vector_size = 0 - (acs_cap, acs_ctrl) = struct.unpack('<HH', f.read(4)) + acs_cap, acs_ctrl = struct.unpack('<HH', f.read(4)) if acs_cap & (1 << 5) and acs_ctrl & (1 << 5): vector_bits = acs_cap >> 8 if vector_bits == 0: vector_bits = 256 + vector_bytes = int((vector_bits + 31) / (8 * 4)) len += vector_bytes elif id in [PCI_EXT_CAP_ID.VC, PCI_EXT_CAP_ID.VC9]: @@ -679,7 +679,8 @@ class PCICapability: len = 4 * 4 elif id == PCI_EXT_CAP_ID.MFVC: len = 4 - elif id in [PCI_EXT_CAP_ID.LTR, PCI_EXT_CAP_ID.ARI, PCI_EXT_CAP_ID.PASID]: + elif id in [PCI_EXT_CAP_ID.LTR, PCI_EXT_CAP_ID.ARI, + PCI_EXT_CAP_ID.PASID]: len = 8 elif id in [PCI_EXT_CAP_ID.DSN, PCI_EXT_CAP_ID.PTM]: len = 12 -- 2.23.0 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/20190930145239.16506-1-andrej.utz%40st.oth-regensburg.de.