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

Submitted by Yuri Benditovich on Feb. 6, 2017, 10:29 p.m.

Details

Message ID 1486420163-171144-3-git-send-email-yuri.benditovich@daynix.com
State New
Headers show
Series "qxl-wddm-dod: fix for black screen after VGA driver enable" ( rev: 3 ) in Spice

Not browsing as part of any series.

Commit Message

Yuri Benditovich Feb. 6, 2017, 10:29 p.m.
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
---
 qxldod/QxlDod.cpp | 6 ------
 1 file changed, 6 deletions(-)

Patch hide | download patch | download mbox

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;
 }