]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix incorrect return status usage of HiiGetBrowserData().
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 8 Dec 2009 04:58:53 +0000 (04:58 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 8 Dec 2009 04:58:53 +0000 (04:58 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9539 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c

index d40d60d663bfbe18dee52e5b5c6bee6647d3b709..39129469589dac7c48f79695f3f2e23367bd3ad0 100644 (file)
@@ -701,8 +701,7 @@ DriverCallback (
     //\r
     Configuration = AllocateZeroPool (sizeof (DRIVER_SAMPLE_CONFIGURATION));\r
     ASSERT (Configuration != NULL);\r
-    Status = HiiGetBrowserData (&mFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration);\r
-    if (!EFI_ERROR (Status)) {\r
+    if (HiiGetBrowserData (&mFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration)) {\r
       Configuration->DynamicOneof = 2;\r
 \r
       //\r