summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-03-29 14:36:49 +0100
committerFrediano Ziglio <fziglio@redhat.com>2017-04-12 09:17:46 +0100
commit7e0642c3f2610f15c158209dd8299e40e4ef2fec (patch)
treef816720ec8f384701459dc561816fd225883754f
parent1b674d86e206398b730eec830d09f68605c4d13b (diff)
Remove m_NumMemSlots member
Only used once Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Yuri Benditovich <yuri.benditovich@daynix.com>
-rwxr-xr-xqxldod/QxlDod.cpp3
-rwxr-xr-xqxldod/QxlDod.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index e747576..8d0f68e 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -3545,11 +3545,10 @@ BOOL QxlDevice::InitMemSlots(void)
{
PAGED_CODE();
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
- m_NumMemSlots = m_RomHdr->slots_end;
m_SlotGenBits = m_RomHdr->slot_gen_bits;
m_SlotIdBits = m_RomHdr->slot_id_bits;
m_VaSlotMask = (~(uint64_t)0) >> (m_SlotIdBits + m_SlotGenBits);
- size_t size = m_NumMemSlots * sizeof(MemSlot);
+ size_t size = m_RomHdr->slots_end * sizeof(MemSlot);
m_MemSlots = reinterpret_cast<MemSlot*>
(new (PagedPool) BYTE[size]);
if (m_MemSlots)
diff --git a/qxldod/QxlDod.h b/qxldod/QxlDod.h
index db7bc8b..cb28a26 100755
--- a/qxldod/QxlDod.h
+++ b/qxldod/QxlDod.h
@@ -647,7 +647,6 @@ private:
ULONG m_RomSize;
MemSlot *m_MemSlots;
- UINT8 m_NumMemSlots;
UINT8 m_MainMemSlot;
UINT8 m_SurfaceMemSlot;
UINT8 m_SlotIdBits;