diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-08-10 07:36:00 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-08-10 07:36:00 +0000 |
commit | 3af91e23cbafdc7a6b91e22bb1882be70ea269d3 (patch) | |
tree | 95170cc85dc3187af27b8eb21dd40bc740299427 | |
parent | 8194a0232cb326844dfbbb60e52a11b206128598 (diff) | |
download | edk2-3af91e23cbafdc7a6b91e22bb1882be70ea269d3.zip edk2-3af91e23cbafdc7a6b91e22bb1882be70ea269d3.tar.gz edk2-3af91e23cbafdc7a6b91e22bb1882be70ea269d3.tar.bz2 |
Minor code refinement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10785 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c index 5bad2f1..55c7202 100644 --- a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c +++ b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c @@ -2949,10 +2949,10 @@ NetLibAsciiStrToIp6 ( LeadZeroCnt++;
}
} else {
- if ((Cnt == 4) && (*TempStr == '0') && (LeadZero == FALSE)) {
+ if ((Cnt == 4) && (*TempStr == '0') && !LeadZero) {
return EFI_INVALID_PARAMETER;
}
- if ((Cnt != 0) && (Cnt < 4) && (LeadZero == TRUE)) {
+ if ((Cnt != 0) && (Cnt < 4) && LeadZero) {
return EFI_INVALID_PARAMETER;
}
}
|