Skip to content

Commit

Permalink
MdeModulePkg: Fixed XCODE complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Krichanov committed Dec 13, 2023
1 parent 4d1b8ee commit 35cf7dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CryptoPkg/Library/IntrinsicLib/CopyMem.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,12 @@ memcpy (
return CopyMem (dest, src, (UINTN)count);
}

void
__bzero (
void *src,
unsigned int count
)
{
ZeroMem (src, count);
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ UndiReceiveFilter (
Cdb->StatFlags = PXE_STATFLAGS_COMMAND_FAILED;
}

if ((Cdb->CPBsize == 0)) {
if (Cdb->CPBsize == 0) {
Cdb->StatFlags = PXE_STATFLAGS_COMMAND_FAILED;
}
}
Expand Down
2 changes: 1 addition & 1 deletion MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ GetLockOnVariableStateVariablePolicyInfo (
LocalLockOnVarStatePolicy = (VARIABLE_LOCK_ON_VAR_STATE_POLICY *)(MatchPolicy + 1);
CopyMem (VariablePolicy, LocalLockOnVarStatePolicy, sizeof (*LocalLockOnVarStatePolicy));

if ((VariableLockPolicyVariableNameBufferSize == NULL)) {
if (VariableLockPolicyVariableNameBufferSize == NULL) {
if (VariableLockPolicyVariableName != NULL) {
return EFI_INVALID_PARAMETER;
}
Expand Down

0 comments on commit 35cf7dc

Please sign in to comment.