]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/poll.c
StdLib: Fix more GCC warnings/errors caused by variables being set but not used.
[mirror_edk2.git] / StdLib / BsdSocketLib / poll.c
index dc175676620cb002dd9a9abdfa815451fc1cde7c..06a1b20973531b98a38544ca8f42f712abc509e7 100644 (file)
@@ -1,29 +1,24 @@
 /** @file\r
   Implement the poll API.\r
 \r
-  Copyright (c) 2011, Intel Corporation\r
-  All rights reserved. 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
+  Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials are licensed and made available under\r
+  the terms and conditions of the BSD License that accompanies this distribution.\r
+  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
-\r
 **/\r
-\r
 #include <SocketInternals.h>\r
 \r
 \r
-/**\r
-  Poll the socket for activity\r
+/** Poll the socket for activity\r
 \r
   @param [in] pDescriptor Descriptor address for the file\r
-\r
   @param [in] Events      Mask of events to detect\r
 \r
   @return     Detected events for the socket\r
-\r
  **/\r
 short\r
 EFIAPI\r
@@ -32,27 +27,19 @@ BslSocketPoll (
   IN short Events\r
   )\r
 {\r
-  short DetectedEvents;\r
+  short                 DetectedEvents;\r
   EFI_SOCKET_PROTOCOL * pSocketProtocol;\r
-  EFI_STATUS Status;\r
 \r
-  //\r
   //  Locate the socket protocol\r
-  //\r
   DetectedEvents = 0;\r
   pSocketProtocol = BslValidateSocketFd ( pDescriptor, &errno );\r
   if ( NULL != pSocketProtocol ) {\r
-    //\r
     //  Poll the socket\r
-    //\r
-    Status = pSocketProtocol->pfnPoll ( pSocketProtocol,\r
-                                        Events,\r
-                                        &DetectedEvents,\r
-                                        &errno );\r
+    (void) pSocketProtocol->pfnPoll ( pSocketProtocol,\r
+                                      Events,\r
+                                      &DetectedEvents,\r
+                                      &errno );\r
   }\r
-\r
-  //\r
   //  Return the detected events\r
-  //\r
   return DetectedEvents;\r
 }\r