]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/TcpDxe: fix SockFreeFoo() parameter list
authorLaszlo Ersek <lersek@redhat.com>
Sat, 7 Sep 2019 18:17:24 +0000 (20:17 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 9 Oct 2019 07:40:10 +0000 (09:40 +0200)
The SockFreeFoo() callback function for NetbufFromExt() has to match the
NET_VECTOR_EXT_FREE prototype, which takes a (VOID*) as callback argument
(Arg). EFI_EVENT has nothing to do with NET_VECTOR_EXT_FREE. Fix the
SockFreeFoo() parameter list.

This change is a no-op in practice.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
NetworkPkg/TcpDxe/SockImpl.c

index f5e01771e2a88a7ea74eeccdbd28efe4988a43cc..fb28e2ed40d3a31e791d99f05165d20b477f2203 100644 (file)
@@ -67,13 +67,13 @@ SockBufNext (
 /**\r
   User provided callback function for NetbufFromExt.\r
 \r
-  @param[in] Event    The Event this notify function registered to, ignored.\r
+  @param[in] Arg      The Arg parameter forwarded by NetbufFromExt(). Ignored.\r
 \r
 **/\r
 VOID\r
 EFIAPI\r
 SockFreeFoo (\r
-  IN EFI_EVENT Event\r
+  IN VOID      *Arg\r
   )\r
 {\r
   return;\r