[Spice-devel] [PATCH v3 2/4] qxl-wddm-dod: Discard meaningless copy of value

Yuri Benditovich yuri.benditovich at daynix.com
Mon Feb 6 22:29:21 UTC 2017


Signed-off-by: Yuri Benditovich <yuri.benditovich at daynix.com>
---
 qxldod/QxlDod.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 14fb1c7..469fdea 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4817,7 +4817,6 @@ UINT SpiceFromPixelFormat(D3DDDIFORMAT Format)
 NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInfo)
 {
     NTSTATUS Status = STATUS_SUCCESS;
-    PHYSICAL_ADDRESS PhysicAddress;
     if (GetId() == 0)
     {
         Status = m_pQxlDod->AcquireDisplayInfo(DispInfo);
@@ -4829,7 +4828,6 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
             Status, DispInfo.Width));
         return STATUS_UNSUCCESSFUL;
     }
-    PhysicAddress.QuadPart = DispInfo.PhysicAddress.QuadPart;
 
     if (DispInfo.Width == 0)
     {
@@ -4838,10 +4836,6 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
         DispInfo.Pitch = MIN_WIDTH_SIZE * BPPFromPixelFormat(D3DDDIFMT_R8G8B8) / 8;
         DispInfo.ColorFormat = D3DDDIFMT_R8G8B8;
         DispInfo.TargetId = 0;
-        if (PhysicAddress.QuadPart != 0L)
-        {
-            DispInfo.PhysicAddress.QuadPart = PhysicAddress.QuadPart;
-        }
     }
     return Status;
 }
-- 
2.7.0.windows.1



More information about the Spice-devel mailing list