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

Yuri Benditovich yuri.benditovich at daynix.com
Sat Feb 4 16:00: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 e761583..082219b 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4816,7 +4816,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);
@@ -4828,7 +4827,6 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
             Status, DispInfo.Width));
         return STATUS_UNSUCCESSFUL;
     }
-    PhysicAddress.QuadPart = DispInfo.PhysicAddress.QuadPart;
 
     if (DispInfo.Width == 0)
     {
@@ -4837,10 +4835,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