summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c
diff options
context:
space:
mode:
authorniry <niry@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-05 23:47:55 +0000
committerniry <niry@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-05 23:47:55 +0000
commit120db52c6db13e1726be90fddedd842190566a6e (patch)
tree22b32a4456e26b6117eb459327d1a64892e6ac52 /MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c
parent4e2dd553a6531e04d2ceb55e1f91159188ba51ec (diff)
downloadedk2-platforms-120db52c6db13e1726be90fddedd842190566a6e.tar.xz
Add comments for functions and fix some coding style issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6885 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c')
-rw-r--r--MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c
index a25bd4e1b4..67aa919c33 100644
--- a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c
+++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c
@@ -28,8 +28,8 @@ Abstract:
@param List Pointer to the token list to be searched.
@param Event The event to be checked.
- @retval BOOLEAN If TRUE, the specific Event exists in the List. If
- FALSE, the specific Event is not in the List.
+ @retval TRUE The specific Event exists in the List.
+ @retval False The specific Event is not in the List.
**/
BOOLEAN
@@ -77,8 +77,7 @@ SockTokenExisted (
if (SockTokenExistedInList (&Sock->SndTokenList, Event) ||
SockTokenExistedInList (&Sock->ProcessingSndTokenList, Event) ||
SockTokenExistedInList (&Sock->RcvTokenList, Event) ||
- SockTokenExistedInList (&Sock->ListenTokenList, Event)
- ) {
+ SockTokenExistedInList (&Sock->ListenTokenList, Event)) {
return TRUE;
}
@@ -152,7 +151,7 @@ SockDestroyChild (
{
EFI_STATUS Status;
- ASSERT (Sock && Sock->ProtoHandler);
+ ASSERT ((Sock != NULL) && (Sock->ProtoHandler != NULL));
if (Sock->IsDestroyed) {
return EFI_SUCCESS;
@@ -258,8 +257,7 @@ SockCreateChild (
/**
- Configure the specific socket Sock using configuration data
- ConfigData.
+ Configure the specific socket Sock using configuration data ConfigData.
@param Sock Pointer to the socket to be configured.
@param ConfigData Pointer to the configuration data.
@@ -455,7 +453,7 @@ SockAccept (
RemoveEntryList (ListEntry);
- ASSERT (Socket->Parent);
+ ASSERT (Socket->Parent != NULL);
Socket->Parent->ConnCnt--;