]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix ICC build failure.
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 12 Apr 2010 09:23:50 +0000 (09:23 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 12 Apr 2010 09:23:50 +0000 (09:23 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10360 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c

index b8421122307e31aef795a042a285ea893b2658fd..35b83f96bb4916260b1113057876debb2cec0cac 100644 (file)
@@ -195,6 +195,7 @@ SerialControllerDriverSupported (
   EFI_OPEN_PROTOCOL_INFORMATION_ENTRY       *OpenInfoBuffer;\r
   UINTN                                     EntryCount;\r
   UINTN                                     Index;\r
+  BOOLEAN                                   HasFlowControl;\r
 \r
   //\r
   // Check RemainingDevicePath validation\r
@@ -298,9 +299,11 @@ SerialControllerDriverSupported (
                         Controller,\r
                         EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                         );\r
-        if (!EFI_ERROR (Status) &&\r
-            (ContainsFlowControl (RemainingDevicePath) ^ ContainsFlowControl (DevicePath))) {\r
-          Status = EFI_UNSUPPORTED;\r
+        if (!EFI_ERROR (Status)) {\r
+          HasFlowControl = ContainsFlowControl (RemainingDevicePath);\r
+          if (HasFlowControl ^ ContainsFlowControl (DevicePath)) {\r
+            Status = EFI_UNSUPPORTED;\r
+          }\r
         }\r
         break;\r
       }\r