Boolean values and variable type BOOLEAN should not use explicit
comparisons to TRUE or FALSE

Cc: Fu Siyuan <[email protected]>
Cc: Ye Ting <[email protected]>
Cc: Wu Jiaxin <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <[email protected]>
---
 MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c 
b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c
index 500b3c7..49fa80b 100644
--- a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c
+++ b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c
@@ -187,11 +187,11 @@ NetHttpParseAuthorityChar (
   case UrlParserHostIpv6:  
     if (Char == ']') {
       *IsRightBracket = TRUE;
     }
     
-    if (Char == ':' && *IsRightBracket == TRUE) {
+    if (Char == ':' && *IsRightBracket) {
       return UrlParserPortStart;
     }
     return UrlParserHostIpv6;
     
   case UrlParserPort:
-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to