}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param CurBBSEntry EDES_TODO: Add parameter description\r
@param Index EDES_TODO: Add parameter description\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param BootOptionVar EDES_TODO: Add parameter description\r
@param BbsEntry EDES_TODO: Add parameter description\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param OptionNumber EDES_TODO: Add parameter description\r
@param BootOrder EDES_TODO: Add parameter description\r
);\r
}\r
\r
- if (BootOrderSize) {\r
+ if (BootOrderSize != 0) {\r
Status = gRT->SetVariable (\r
L"BootOrder",\r
&gEfiGlobalVariableGuid,\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param BootOrder EDES_TODO: Add parameter description\r
@param BootOptionNum EDES_TODO: Add parameter description\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param BbsItem EDES_TODO: Add parameter description\r
@param Index EDES_TODO: Add parameter description\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param BbsTable EDES_TODO: Add parameter description\r
@param BbsType EDES_TODO: Add parameter description\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param BbsTable EDES_TODO: Add parameter description\r
@param BbsCount EDES_TODO: Add parameter description\r
Ptr += sizeof (BBS_TYPE);\r
*((UINT16 *) Ptr) = (UINT16) (sizeof (UINT16) + FDCount * sizeof (UINT16));\r
Ptr += sizeof (UINT16);\r
- if (FDCount) {\r
+ if (FDCount != 0) {\r
Ptr = (UINT8 *) BdsFillDevOrderBuf (BbsTable, BBS_FLOPPY, BbsCount, (UINT16 *) Ptr);\r
}\r
\r
Ptr += sizeof (BBS_TYPE);\r
*((UINT16 *) Ptr) = (UINT16) (sizeof (UINT16) + HDCount * sizeof (UINT16));\r
Ptr += sizeof (UINT16);\r
- if (HDCount) {\r
+ if (HDCount != 0) {\r
Ptr = (UINT8 *) BdsFillDevOrderBuf (BbsTable, BBS_HARDDISK, BbsCount, (UINT16 *) Ptr);\r
}\r
\r
Ptr += sizeof (BBS_TYPE);\r
*((UINT16 *) Ptr) = (UINT16) (sizeof (UINT16) + CDCount * sizeof (UINT16));\r
Ptr += sizeof (UINT16);\r
- if (CDCount) {\r
+ if (CDCount != 0) {\r
Ptr = (UINT8 *) BdsFillDevOrderBuf (BbsTable, BBS_CDROM, BbsCount, (UINT16 *) Ptr);\r
}\r
\r
Ptr += sizeof (BBS_TYPE);\r
*((UINT16 *) Ptr) = (UINT16) (sizeof (UINT16) + NETCount * sizeof (UINT16));\r
Ptr += sizeof (UINT16);\r
- if (NETCount) {\r
+ if (NETCount != 0) {\r
Ptr = (UINT8 *) BdsFillDevOrderBuf (BbsTable, BBS_EMBED_NETWORK, BbsCount, (UINT16 *) Ptr);\r
}\r
\r
Ptr += sizeof (BBS_TYPE);\r
*((UINT16 *) Ptr) = (UINT16) (sizeof (UINT16) + BEVCount * sizeof (UINT16));\r
Ptr += sizeof (UINT16);\r
- if (BEVCount) {\r
+ if (BEVCount != 0) {\r
Ptr = (UINT8 *) BdsFillDevOrderBuf (BbsTable, BBS_BEV_DEVICE, BbsCount, (UINT16 *) Ptr);\r
}\r
\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param VOID EDES_TODO: Add parameter description\r
\r
// at this point we have copied those valid indexes to new buffer\r
// and we should check if there is any new appeared boot device\r
//\r
- if (Idx) {\r
+ if (Idx != 0) {\r
for (Index2 = 0; Index2 < *Idx; Index2++) {\r
if ((NewDevPtr[Index2] & 0xFF) == (UINT16) Index) {\r
break;\r
}\r
}\r
\r
- if (FDCount) {\r
+ if (FDCount != 0) {\r
//\r
// Just to make sure that disabled indexes are all at the end of the array\r
//\r
}\r
}\r
\r
- if (HDCount) {\r
+ if (HDCount != 0) {\r
//\r
// Just to make sure that disabled indexes are all at the end of the array\r
//\r
}\r
}\r
\r
- if (CDCount) {\r
+ if (CDCount != 0) {\r
//\r
// Just to make sure that disabled indexes are all at the end of the array\r
//\r
}\r
}\r
\r
- if (NETCount) {\r
+ if (NETCount != 0) {\r
//\r
// Just to make sure that disabled indexes are all at the end of the array\r
//\r
}\r
}\r
\r
- if (BEVCount) {\r
+ if (BEVCount!= 0) {\r
//\r
// Just to make sure that disabled indexes are all at the end of the array\r
//\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param DeviceType EDES_TODO: Add parameter description\r
@param LocalBbsTable EDES_TODO: Add parameter description\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param LocalBbsTable EDES_TODO: Add parameter description\r
\r
}\r
\r
/**\r
- EDES_TODO: Add function description\r
+ EDES_TODO: Add function description.\r
\r
@param Entry EDES_TODO: Add parameter description\r
\r
&gEfiGlobalVariableGuid,\r
&BootOrderSize\r
);\r
- for (Index = 0; BootOrder && Index < BootOrderSize / sizeof (UINT16); Index++) {\r
+ for (Index = 0; ((BootOrder != NULL) && (Index < BootOrderSize / sizeof (UINT16))); Index++) {\r
UnicodeSPrint (BootOption, sizeof (BootOption), L"Boot%04x", BootOrder[Index]);\r
BootOptionVar = BdsLibGetVariableAndSize (\r
BootOption,\r
}\r
}\r
\r
- if (BootOrder) {\r
+ if (BootOrder != NULL) {\r
SafeFreePool (BootOrder);\r
}\r
//\r