From 824e8a5233fe6f0b213a741cd38cbbc3ffa639a8 Mon Sep 17 00:00:00 2001 From: xdu2 Date: Tue, 8 Dec 2009 04:58:53 +0000 Subject: Fix incorrect return status usage of HiiGetBrowserData(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9539 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index d40d60d663..3912946958 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -701,8 +701,7 @@ DriverCallback ( // Configuration = AllocateZeroPool (sizeof (DRIVER_SAMPLE_CONFIGURATION)); ASSERT (Configuration != NULL); - Status = HiiGetBrowserData (&mFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration); - if (!EFI_ERROR (Status)) { + if (HiiGetBrowserData (&mFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration)) { Configuration->DynamicOneof = 2; // -- cgit v1.2.3