/** @file\r
Implementation of the Socket.\r
\r
- Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
/**\r
Cancel the tokens in the specific token list.\r
\r
- @param[in] Token Pointer to the Token. If NULL, all tokens \r
- in SpecifiedTokenList will be canceled. \r
+ @param[in] Token Pointer to the Token. If NULL, all tokens\r
+ in SpecifiedTokenList will be canceled.\r
@param[in, out] SpecifiedTokenList Pointer to the token list to be checked.\r
- \r
+\r
@retval EFI_SUCCESS Cancel the tokens in the specific token listsuccessfully.\r
@retval EFI_NOT_FOUND The Token is not found in SpecifiedTokenList.\r
- \r
+\r
**/\r
EFI_STATUS\r
SockCancelToken (\r
if (IsListEmpty (SpecifiedTokenList) && Token != NULL) {\r
return EFI_NOT_FOUND;\r
}\r
- \r
+\r
//\r
// Iterate through the SpecifiedTokenList.\r
//\r
Entry = SpecifiedTokenList->ForwardLink;\r
while (Entry != SpecifiedTokenList) {\r
SockToken = NET_LIST_USER_STRUCT (Entry, SOCK_TOKEN, TokenList);\r
- \r
+\r
if (Token == NULL) {\r
SIGNAL_TOKEN (SockToken->Token, EFI_ABORTED);\r
RemoveEntryList (&SockToken->TokenList);\r
FreePool (SockToken);\r
- \r
+\r
Entry = SpecifiedTokenList->ForwardLink;\r
Status = EFI_SUCCESS;\r
} else {\r
SIGNAL_TOKEN (Token, EFI_ABORTED);\r
RemoveEntryList (&(SockToken->TokenList));\r
FreePool (SockToken);\r
- \r
+\r
return EFI_SUCCESS;\r
}\r
\r
Status = EFI_NOT_FOUND;\r
- \r
+\r
Entry = Entry->ForwardLink;\r
- } \r
+ }\r
}\r
\r
ASSERT (IsListEmpty (SpecifiedTokenList) || Token != NULL);\r
- \r
+\r
return Status;\r
}\r
\r