]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Use a compare operator for Non-Boolean comparison in 'map.c'.
authorQiu Shumin <shumin.qiu@intel.com>
Fri, 6 Jun 2014 08:47:18 +0000 (08:47 +0000)
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jun 2014 08:47:18 +0000 (08:47 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15559 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c

index 4865d0e7a11afd3c57fd99cf6be03ee1a9003eed..4763cfccca535a38ce026fff184071d7d4bf84bf 100644 (file)
@@ -345,7 +345,7 @@ MappingListHasType(
     FreePool(NewSpecific);\r
   }\r
   if (  Consist\r
-    && !Specific\r
+    && Specific == NULL\r
     && (SearchList(MapList, L"HD*",  NULL, TRUE, TRUE, L";")\r
       ||SearchList(MapList, L"CD*",  NULL, TRUE, TRUE, L";")\r
       ||SearchList(MapList, L"F*",   NULL, TRUE, TRUE, L";")\r
@@ -354,7 +354,7 @@ MappingListHasType(
   }\r
 \r
   if (  Normal\r
-    && !Specific\r
+    && Specific == NULL\r
     && (SearchList(MapList, L"FS",  NULL, FALSE, TRUE, L";")\r
       ||SearchList(MapList, L"BLK", NULL, FALSE, TRUE, L";"))){\r
     return (TRUE);\r