]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Refine the code, remove the useless code.
authorEric Dong <eric.dong@intel.com>
Tue, 16 Sep 2014 07:01:03 +0000 (07:01 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 Sep 2014 07:01:03 +0000 (07:01 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16112 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c

index 0d3b489e35f62287d7a89e553be1ec7f6591a997..0a6a445f0b635f46c366504d9b0d6877c5bd776e 100644 (file)
@@ -370,13 +370,9 @@ BOpt_FindFileSystem (
       if (FileContext->Info == NULL) {\r
         VolumeLabel = L"NO FILE SYSTEM INFO";\r
       } else {\r
-        if (FileContext->Info->VolumeLabel == NULL) {\r
-          VolumeLabel = L"NULL VOLUME LABEL";\r
-        } else {\r
-          VolumeLabel = FileContext->Info->VolumeLabel;\r
-          if (*VolumeLabel == 0x0000) {\r
-            VolumeLabel = L"NO VOLUME LABEL";\r
-          }\r
+        VolumeLabel = FileContext->Info->VolumeLabel;\r
+        if (*VolumeLabel == 0x0000) {\r
+          VolumeLabel = L"NO VOLUME LABEL";\r
         }\r
       }\r
 \r