]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/AtaAtapiPassThru: Fix VS2010/VS2012 build failure
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 11 Jun 2018 02:17:01 +0000 (10:17 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 19 Jun 2018 03:00:42 +0000 (11:00 +0800)
The patch doesn't have functionality impact. It is just to make
VS2010/VS2012 happy.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c

index 1bae1e8e0cfa09c7a11dfc0d12c59547b297d686..5da50183458b2cbd4dcd5e67296e03e950b54310 100644 (file)
@@ -2381,7 +2381,7 @@ AhciEnableDevSlp (
     //\r
     // Assume DEVSLP TIMING VARIABLES is not supported if the Identify Device Data log (30h, 8) fails\r
     //\r
-    DevSlpTiming.Supported = 0;\r
+    ZeroMem (&DevSlpTiming, sizeof (DevSlpTiming));\r
   } else {\r
     CopyMem (&DevSlpTiming, &LogData[48], sizeof (DevSlpTiming));\r
     DEBUG ((DEBUG_INFO, "DevSlpTiming: Supported(%d), Deto(%d), Madt(%d)\n",\r