Update the code to following EDK coding style document.

1) Pointer value should compare with NULL.
2) Integer should compare with 0.
3) BOOLEAN should not compare with TRUE or FALSE.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5413 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-07-07 09:17:56 +00:00
parent f3947f1ac7
commit a78b08d13b
11 changed files with 225 additions and 225 deletions

View File

@@ -15,7 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "BootMaint.h"
/**
EDES_TODO: Add function description
EDES_TODO: Add function description.
@param DevPath EDES_TODO: Add parameter description
@@ -28,7 +28,7 @@ DevicePathInstanceDup (
);
/**
EDES_TODO: Add function description
EDES_TODO: Add function description.
@param DevicePath EDES_TODO: Add parameter description
@@ -41,7 +41,7 @@ UpdateComAttributeFromVariable (
);
/**
EDES_TODO: Add function description
EDES_TODO: Add function description.
@param DevicePath EDES_TODO: Add parameter description
@param ChangeTerminal EDES_TODO: Add parameter description
@@ -162,7 +162,7 @@ ChangeTerminalDevicePath (
}
/**
EDES_TODO: Add function description
EDES_TODO: Add function description.
@param DevicePath EDES_TODO: Add parameter description
@@ -328,7 +328,7 @@ SortedUartHandle (
}
/**
EDES_TODO: Add function description
EDES_TODO: Add function description.
@param DevicePath EDES_TODO: Add parameter description
@param Termi EDES_TODO: Add parameter description
@@ -420,7 +420,7 @@ LocateSerialIo (
if (CompareMem (&Acpi->HID, &Match, sizeof (UINT32)) == 0) {
NewMenuEntry = BOpt_CreateMenuEntry (BM_TERMINAL_CONTEXT_SELECT);
if (!NewMenuEntry) {
if (NewMenuEntry == NULL) {
SafeFreePool (Handles);
return EFI_OUT_OF_RESOURCES;
}
@@ -482,15 +482,15 @@ LocateSerialIo (
OutDevicePath = EfiLibGetVariable (L"ConOut", &gEfiGlobalVariableGuid);
InpDevicePath = EfiLibGetVariable (L"ConIn", &gEfiGlobalVariableGuid);
ErrDevicePath = EfiLibGetVariable (L"ErrOut", &gEfiGlobalVariableGuid);
if (OutDevicePath) {
if (OutDevicePath != NULL) {
UpdateComAttributeFromVariable (OutDevicePath);
}
if (InpDevicePath) {
if (InpDevicePath != NULL) {
UpdateComAttributeFromVariable (InpDevicePath);
}
if (ErrDevicePath) {
if (ErrDevicePath != NULL) {
UpdateComAttributeFromVariable (ErrDevicePath);
}
@@ -697,12 +697,12 @@ DevicePathInstanceDup (
// Make a copy and set proper end type
//
NewDevPath = NULL;
if (Size) {
if (Size != 0) {
NewDevPath = EfiAllocateZeroPool (Size);
ASSERT (NewDevPath != NULL);
}
if (NewDevPath) {
if (NewDevPath != NULL) {
CopyMem (NewDevPath, DevicePathInst, Size);
Ptr = (UINT8 *) NewDevPath;
Ptr += Size - sizeof (EFI_DEVICE_PATH_PROTOCOL);
@@ -714,7 +714,7 @@ DevicePathInstanceDup (
}
/**
EDES_TODO: Add function description
EDES_TODO: Add function description.
@param ConsoleMenuType EDES_TODO: Add parameter description