summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r--MdeModulePkg/Universal/Network/IScsiDxe/Md5.h9
-rw-r--r--MdeModulePkg/Universal/Network/PxeBcDxe/Bc.h63
-rw-r--r--MdeModulePkg/Universal/Network/PxeBcDxe/Ip.h84
-rw-r--r--MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4.h60
-rw-r--r--MdeModulePkg/Universal/Network/SnpDxe/Snp.h81
-rw-r--r--MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c3
6 files changed, 100 insertions, 200 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/Md5.h b/MdeModulePkg/Universal/Network/IScsiDxe/Md5.h
index dd59626f37..fca782ce34 100644
--- a/MdeModulePkg/Universal/Network/IScsiDxe/Md5.h
+++ b/MdeModulePkg/Universal/Network/IScsiDxe/Md5.h
@@ -48,8 +48,7 @@ typedef struct _MD5_CTX {
EFI_STATUS
MD5Init (
IN MD5_CTX *Md5Ctx
- )
-;
+ );
/**
the external interface of Md5 algorithm
@@ -69,8 +68,7 @@ MD5Update (
IN MD5_CTX *Md5Ctx,
IN VOID *Data,
IN UINTN DataLen
- )
-;
+ );
/**
accumulate the MD5 value of every data segment and generate the finial
@@ -88,7 +86,6 @@ EFI_STATUS
MD5Final (
IN MD5_CTX *Md5Ctx,
OUT UINT8 *HashVal
- )
-;
+ );
#endif // _MD5_H
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.h b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.h
index 0d1e3f7868..56c139371f 100644
--- a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.h
+++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.h
@@ -188,16 +188,14 @@ PxebcBisStart (
PXE_BASECODE_DEVICE *Private,
BIS_APPLICATION_HANDLE *BisAppHandle,
EFI_BIS_DATA **BisDataSigInfo
- )
-;
+ );
VOID
PxebcBisStop (
EFI_BIS_PROTOCOL *Bis,
BIS_APPLICATION_HANDLE BisAppHandle,
EFI_BIS_DATA *BisDataSigInfo
- )
-;
+ );
BOOLEAN
PxebcBisVerify (
@@ -206,14 +204,12 @@ PxebcBisVerify (
UINTN FileBufferLength,
VOID *CredentialBuffer,
UINTN CredentialBufferLength
- )
-;
+ );
BOOLEAN
PxebcBisDetect (
PXE_BASECODE_DEVICE *Private
- )
-;
+ );
//
// Global Variables
@@ -240,31 +236,27 @@ EFIAPI
InitializeBCDriver (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
- )
-;
+ );
EFI_STATUS
EFIAPI
BcStart (
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
IN BOOLEAN UseIpv6
- )
-;
+ );
EFI_STATUS
EFIAPI
BcStop (
IN EFI_PXE_BASE_CODE_PROTOCOL *This
- )
-;
+ );
EFI_STATUS
EFIAPI
BcDhcp (
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
IN BOOLEAN SortOffers
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -274,8 +266,7 @@ BcDiscover (
IN UINT16 *Layer,
IN BOOLEAN UseBis,
IN EFI_PXE_BASE_CODE_DISCOVER_INFO * Info OPTIONAL
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -290,8 +281,7 @@ BcMtftp (
IN UINT8 *Filename,
IN EFI_PXE_BASE_CODE_MTFTP_INFO * Info OPTIONAL,
IN BOOLEAN DontUseBuffer
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -307,8 +297,7 @@ BcUdpWrite (
IN VOID *HeaderPtr, OPTIONAL
IN UINTN *BufferSize,
IN VOID *BufferPtr
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -323,8 +312,7 @@ BcUdpRead (
IN VOID *HeaderPtr, OPTIONAL
IN OUT UINTN *BufferSize,
IN VOID *BufferPtr
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -345,8 +333,7 @@ BcTcpWrite (
IN VOID *HeaderPtr, OPTIONAL
IN UINTN *BufferSize,
IN VOID *BufferPtr
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -361,8 +348,7 @@ BcTcpRead (
IN VOID *HeaderPtr, OPTIONAL
IN OUT UINTN *BufferSize,
IN VOID *BufferPtr
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -370,16 +356,14 @@ BcArp (
IN EFI_PXE_BASE_CODE_PROTOCOL * This,
IN EFI_IP_ADDRESS * IpAddr,
IN EFI_MAC_ADDRESS * MacAddr OPTIONAL
- )
-;
+ );
EFI_STATUS
EFIAPI
BcIpFilter (
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
IN EFI_PXE_BASE_CODE_IP_FILTER *NewFilter
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -390,8 +374,7 @@ BcSetParameters (
IN UINT8 *NewTTL, OPTIONAL
IN UINT8 *NewToS, OPTIONAL
IN BOOLEAN *NewMakeCallback OPTIONAL
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -399,8 +382,7 @@ BcSetStationIP (
IN EFI_PXE_BASE_CODE_PROTOCOL * This,
IN EFI_IP_ADDRESS * NewStationIp, OPTIONAL
IN EFI_IP_ADDRESS * NewSubnetMask OPTIONAL
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -418,8 +400,7 @@ BcSetPackets (
IN EFI_PXE_BASE_CODE_PACKET * NewPxeDiscover, OPTIONAL
IN EFI_PXE_BASE_CODE_PACKET * NewPxeReply, OPTIONAL
IN EFI_PXE_BASE_CODE_PACKET * NewPxeBisReply OPTIONAL
- )
-;
+ );
EFI_STATUS
EFIAPI
@@ -429,15 +410,13 @@ LoadFile (
IN BOOLEAN BootPolicy,
IN OUT UINTN *BufferSize,
IN VOID *Buffer
- )
-;
+ );
EFI_STATUS
PxeBcLibGetSmbiosSystemGuidAndSerialNumber (
IN EFI_GUID *SystemGuid,
OUT CHAR8 **SystemSerialNumber
- )
-;
+ );
#include "Ip.h"
#include "Dhcp.h"
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Ip.h b/MdeModulePkg/Universal/Network/PxeBcDxe/Ip.h
index 29f143961a..158fce60ad 100644
--- a/MdeModulePkg/Universal/Network/PxeBcDxe/Ip.h
+++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Ip.h
@@ -431,8 +431,7 @@ EFI_STATUS
IpFilter (
PXE_BASECODE_DEVICE *Private,
IN EFI_PXE_BASE_CODE_IP_FILTER *Filter
- )
-;
+ );
//
// //////////////////////////////////////////////////////////////////////
@@ -452,8 +451,7 @@ UdpWrite (
IN VOID *HeaderPtr, OPTIONAL
IN UINTN *BufferSizePtr,
IN VOID *BufferPtr
- )
-;
+ );
//
// /////////////////////////////////////////////////////////////////////
@@ -473,22 +471,19 @@ UdpRead (
IN OUT UINTN *BufferSizePtr,
IN VOID *BufferPtr,
IN EFI_EVENT TimeoutEvent
- )
-;
+ );
VOID
IgmpLeaveGroup (
PXE_BASECODE_DEVICE *Private,
EFI_IP_ADDRESS *
- )
-;
+ );
VOID
IgmpJoinGroup (
PXE_BASECODE_DEVICE *Private,
EFI_IP_ADDRESS *
- )
-;
+ );
//
// convert number to zero filled ascii value of length lth
@@ -498,8 +493,7 @@ CvtNum (
UINTN Number,
UINT8 *BufferPtr,
INTN BufferLen
- )
-;
+ );
//
// convert number to ascii string at ptr
@@ -508,8 +502,7 @@ VOID
UtoA10 (
UINTN Number,
UINT8 *BufferPtr
- )
-;
+ );
//
// convert ascii numeric string to UINTN
@@ -517,14 +510,12 @@ UtoA10 (
UINTN
AtoU (
UINT8 *BufferPtr
- )
-;
+ );
UINT64
AtoU64 (
UINT8 *BufferPtr
- )
-;
+ );
//
// calculate the internet checksum (RFC 1071)
@@ -534,8 +525,7 @@ UINT16
IpChecksum (
UINT16 *MessagePtr,
UINTN ByteLength
- )
-;
+ );
//
// do checksum on non contiguous header and data
@@ -546,8 +536,7 @@ IpChecksum2 (
UINTN HeaderLength,
UINT16 *Message,
UINTN MessageLength
- )
-;
+ );
//
// update checksum when only a single word changes
@@ -557,21 +546,18 @@ UpdateChecksum (
UINT16 OldChecksum,
UINT16 OldWord,
UINT16 NewWord
- )
-;
+ );
VOID
SeedRandom (
IN PXE_BASECODE_DEVICE *Private,
IN UINT16 InitialSeed
- )
-;
+ );
UINT16
Random (
IN PXE_BASECODE_DEVICE *Private
- )
-;
+ );
EFI_STATUS
SendPacket (
@@ -582,30 +568,26 @@ SendPacket (
VOID *HardwareAddress,
UINT16 MediaProtocol,
IN EFI_PXE_BASE_CODE_FUNCTION Function
- )
-;
+ );
VOID
HandleArpReceive (
PXE_BASECODE_DEVICE *Private,
ARP_PACKET *ArpPacketPtr,
VOID *HeaderPtr
- )
-;
+ );
VOID
HandleIgmp (
PXE_BASECODE_DEVICE *Private,
IGMPV2_MESSAGE *IgmpMessageptr,
UINTN IgmpMessageLen
- )
-;
+ );
VOID
IgmpCheckTimers (
PXE_BASECODE_DEVICE *Private
- )
-; // poll when doing a receive
+ ); // poll when doing a receive
// return hw add of IP and TRUE if available, otherwise FALSE
//
BOOLEAN
@@ -613,16 +595,14 @@ GetHwAddr (
IN PXE_BASECODE_DEVICE *Private,
EFI_IP_ADDRESS *ProtocolAddressPtr,
EFI_MAC_ADDRESS *HardwareAddressPtr
- )
-;
+ );
EFI_STATUS
DoArp (
IN PXE_BASECODE_DEVICE *Private,
IN EFI_IP_ADDRESS *ProtocolAddressPtr,
OUT EFI_MAC_ADDRESS *HardwareAddressptr
- )
-;
+ );
BOOLEAN
OnSameSubnet (
@@ -630,15 +610,13 @@ OnSameSubnet (
EFI_IP_ADDRESS *Ip1,
EFI_IP_ADDRESS *Ip2,
EFI_IP_ADDRESS *SubnetMask
- )
-;
+ );
VOID
IpAddRouter (
PXE_BASECODE_DEVICE *Private,
EFI_IP_ADDRESS *RouterIp
- )
-;
+ );
#define Ip4AddRouter(Private, Ipv4Ptr) IpAddRouter (Private, (EFI_IP_ADDRESS *) Ipv4Ptr)
@@ -656,8 +634,7 @@ Ipv4Xmt (
VOID *Data,
UINTN DataLen,
EFI_PXE_BASE_CODE_FUNCTION Function
- )
-;
+ );
//
// send ipv4 packet with ipv4 option
@@ -673,8 +650,7 @@ Ipv4SendWOp (
UINTN OptionLen,
UINT32 DestIp,
EFI_PXE_BASE_CODE_FUNCTION Function
- )
-;
+ );
//
// send MsgLth message at MsgPtr - higher level protocol header already in xmtbuf, length HdrSize
@@ -690,8 +666,7 @@ Ip4Send (
IN UINTN HeaderSize, // protocol header byte length
IN UINT8 *MsgPtr, // pointer to data
IN UINTN MsgLength
- )
-; // data byte length
+ ); // data byte length
// receive up to MsgLth message into MsgPtr for protocol Prot
// return message length, src/dest ips if select any, and pointer to protocol header
//
@@ -707,15 +682,13 @@ IpReceive (
UINT8 *MsgPtr, // pointer to data buffer
UINTN *MsgLenPtr, // pointer to data buffer length/ O - returned data length
IN EFI_EVENT TimeoutEvent
- )
-;
+ );
#if 0
VOID
WaitForTxComplete (
IN PXE_BASECODE_DEVICE *Private
- )
-;
+ );
#endif
//
// routine to cycle waiting for a receive or timeout
@@ -728,8 +701,7 @@ WaitForReceive (
IN OUT UINTN *HeaderSizePtr,
IN OUT UINTN *BufferSizePtr,
IN OUT UINT16 *ProtocolPtr
- )
-;
+ );
#endif /* _IP_H_ */
diff --git a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4.h b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4.h
index c923ccedbc..cefe52d08c 100644
--- a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4.h
+++ b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4.h
@@ -120,8 +120,7 @@ PxeDhcp4Run (
IN EFI_PXE_DHCP4_PROTOCOL *This,
IN OPTIONAL UINTN OpLen,
IN OPTIONAL VOID *OpList
- )
-;
+ );
extern
EFI_STATUS
@@ -129,8 +128,7 @@ EFIAPI
PxeDhcp4Setup (
IN EFI_PXE_DHCP4_PROTOCOL *This,
IN EFI_PXE_DHCP4_DATA *Data
- )
-;
+ );
extern
EFI_STATUS
@@ -140,8 +138,7 @@ PxeDhcp4Init (
IN UINTN seconds_timeout,
OUT UINTN *offer_list_entries,
OUT DHCP4_PACKET **offer_list
- )
-;
+ );
extern
EFI_STATUS
@@ -150,8 +147,7 @@ PxeDhcp4Select (
IN EFI_PXE_DHCP4_PROTOCOL *This,
IN UINTN seconds_timeout,
IN DHCP4_PACKET *offer_list
- )
-;
+ );
extern
EFI_STATUS
@@ -159,8 +155,7 @@ EFIAPI
PxeDhcp4Renew (
IN EFI_PXE_DHCP4_PROTOCOL *This,
UINTN seconds_timeout
- )
-;
+ );
extern
EFI_STATUS
@@ -168,16 +163,14 @@ EFIAPI
PxeDhcp4Rebind (
IN EFI_PXE_DHCP4_PROTOCOL *This,
UINTN seconds_timeout
- )
-;
+ );
extern
EFI_STATUS
EFIAPI
PxeDhcp4Release (
IN EFI_PXE_DHCP4_PROTOCOL *This
- )
-;
+ );
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
@@ -188,15 +181,13 @@ extern
UINT16
htons (
UINTN n
- )
-;
+ );
extern
UINT32
htonl (
UINTN n
- )
-;
+ );
extern
VOID
@@ -204,8 +195,7 @@ EFIAPI
timeout_notify (
IN EFI_EVENT Event,
IN VOID *Context
- )
-;
+ );
extern
VOID
@@ -213,8 +203,7 @@ EFIAPI
periodic_notify (
IN EFI_EVENT Event,
IN VOID *Context
- )
-;
+ );
extern
EFI_STATUS
@@ -223,16 +212,14 @@ find_opt (
IN UINT8 OpCode,
IN UINTN Skip,
OUT DHCP4_OP **OpPtr
- )
-;
+ );
extern
EFI_STATUS
add_opt (
IN DHCP4_PACKET *Packet,
IN DHCP4_OP *OpPtr
- )
-;
+ );
extern
EFI_STATUS
@@ -240,30 +227,26 @@ start_udp (
IN PXE_DHCP4_PRIVATE_DATA *Private,
IN OPTIONAL EFI_IP_ADDRESS *station_ip,
IN OPTIONAL EFI_IP_ADDRESS *subnet_mask
- )
-;
+ );
extern
VOID
stop_udp (
IN PXE_DHCP4_PRIVATE_DATA *Private
- )
-;
+ );
extern
EFI_STATUS
start_receive_events (
IN PXE_DHCP4_PRIVATE_DATA *Private,
IN UINTN seconds_timeout
- )
-;
+ );
extern
VOID
stop_receive_events (
IN PXE_DHCP4_PRIVATE_DATA *Private
- )
-;
+ );
extern
EFI_STATUS
@@ -274,8 +257,7 @@ tx_udp (
IN EFI_IP_ADDRESS *src_ip,
IN VOID *buffer,
IN UINTN BufferSize
- )
-;
+ );
extern
EFI_STATUS
@@ -286,8 +268,7 @@ rx_udp (
IN OUT EFI_IP_ADDRESS *dest_ip,
IN OUT EFI_IP_ADDRESS *src_ip,
IN UINT16 op_flags
- )
-;
+ );
extern
EFI_STATUS
@@ -309,8 +290,7 @@ tx_rx_udp (
IN UINTN rx_pkt_size
),
IN UINTN seconds_timeout
- )
-;
+ );
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Snp.h b/MdeModulePkg/Universal/Network/SnpDxe/Snp.h
index b6e58c4d27..4532ab4796 100644
--- a/MdeModulePkg/Universal/Network/SnpDxe/Snp.h
+++ b/MdeModulePkg/Universal/Network/SnpDxe/Snp.h
@@ -148,35 +148,30 @@ add_v2p (
EFI_PCI_IO_PROTOCOL_OPERATION type,
VOID *vaddr,
UINTN bsize
- )
-;
+ );
EFI_STATUS
find_v2p (
struct s_v2p **v2p,
VOID *vaddr
- )
-;
+ );
EFI_STATUS
del_v2p (
VOID *vaddr
- )
-;
+ );
extern
VOID
snp_undi32_callback_block_30 (
IN UINT32 Enable
- )
-;
+ );
extern
VOID
snp_undi32_callback_delay_30 (
IN UINT64 MicroSeconds
- )
-;
+ );
extern
VOID
@@ -185,32 +180,28 @@ snp_undi32_callback_memio_30 (
IN UINT8 NumBytes,
IN UINT64 MemOrPortAddress,
IN OUT UINT64 BufferPtr
- )
-;
+ );
extern
VOID
snp_undi32_callback_v2p_30 (
IN UINT64 CpuAddr,
IN OUT UINT64 DeviceAddrPtr
- )
-;
+ );
extern
VOID
snp_undi32_callback_block (
IN UINT64 UniqueId,
IN UINT32 Enable
- )
-;
+ );
extern
VOID
snp_undi32_callback_delay (
IN UINT64 UniqueId,
IN UINT64 MicroSeconds
- )
-;
+ );
extern
VOID
@@ -220,8 +211,7 @@ snp_undi32_callback_memio (
IN UINT8 NumBytes,
IN UINT64 MemOrPortAddr,
IN OUT UINT64 BufferPtr
- )
-;
+ );
extern
VOID
@@ -231,8 +221,7 @@ snp_undi32_callback_map (
IN UINT32 NumBytes,
IN UINT32 Direction,
IN OUT UINT64 DeviceAddrPtr
- )
-;
+ );
extern
VOID
@@ -242,8 +231,7 @@ snp_undi32_callback_unmap (
IN UINT32 NumBytes,
IN UINT32 Direction,
IN UINT64 DeviceAddr // not a pointer to device address
- )
-;
+ );
extern
VOID
@@ -253,24 +241,21 @@ snp_undi32_callback_sync (
IN UINT32 NumBytes,
IN UINT32 Direction,
IN UINT64 DeviceAddr // not a pointer to device address
- )
-;
+ );
extern
EFI_STATUS
EFIAPI
snp_undi32_start (
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
- )
-;
+ );
extern
EFI_STATUS
EFIAPI
snp_undi32_stop (
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
- )
-;
+ );
extern
EFI_STATUS
@@ -279,8 +264,7 @@ snp_undi32_initialize (
IN EFI_SIMPLE_NETWORK_PROTOCOL *this,
IN UINTN extra_rx_buffer_size OPTIONAL,
IN UINTN extra_tx_buffer_size OPTIONAL
- )
-;
+ );
extern
EFI_STATUS
@@ -288,16 +272,14 @@ EFIAPI
snp_undi32_reset (
IN EFI_SIMPLE_NETWORK_PROTOCOL *this,
IN BOOLEAN ExtendedVerification
- )
-;
+ );
extern
EFI_STATUS
EFIAPI
snp_undi32_shutdown (
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
- )
-;
+ );
extern
EFI_STATUS
@@ -309,8 +291,7 @@ snp_undi32_receive_filters (
IN BOOLEAN reset_mcast_filter,
IN UINTN mcast_filter_count OPTIONAL,
IN EFI_MAC_ADDRESS * mcast_filter OPTIONAL
- )
-;
+ );
extern
EFI_STATUS
@@ -319,8 +300,7 @@ snp_undi32_station_address (
IN EFI_SIMPLE_NETWORK_PROTOCOL * this,
IN BOOLEAN reset,
IN EFI_MAC_ADDRESS *new OPTIONAL
- )
-;
+ );
extern
EFI_STATUS
@@ -330,8 +310,7 @@ snp_undi32_statistics (
IN BOOLEAN reset,
IN OUT UINTN *statistics_size OPTIONAL,
IN OUT EFI_NETWORK_STATISTICS * statistics_table OPTIONAL
- )
-;
+ );
extern
EFI_STATUS
@@ -341,8 +320,7 @@ snp_undi32_mcast_ip_to_mac (
IN BOOLEAN IPv6,
IN EFI_IP_ADDRESS *IP,
OUT EFI_MAC_ADDRESS *MAC
- )
-;
+ );
extern
EFI_STATUS
@@ -353,8 +331,7 @@ snp_undi32_nvdata (
IN UINTN offset,
IN UINTN buffer_size,
IN OUT VOID *buffer
- )
-;
+ );
extern
EFI_STATUS
@@ -363,8 +340,7 @@ snp_undi32_get_status (
IN EFI_SIMPLE_NETWORK_PROTOCOL * this,
OUT UINT32 *interrupt_status OPTIONAL,
OUT VOID **tx_buffer OPTIONAL
- )
-;
+ );
extern
EFI_STATUS
@@ -377,8 +353,7 @@ snp_undi32_transmit (
IN EFI_MAC_ADDRESS * src_addr OPTIONAL,
IN EFI_MAC_ADDRESS * dest_addr OPTIONAL,
IN UINT16 *protocol OPTIONAL
- )
-;
+ );
extern
EFI_STATUS
@@ -391,8 +366,7 @@ snp_undi32_receive (
OUT EFI_MAC_ADDRESS * src_addr OPTIONAL,
OUT EFI_MAC_ADDRESS * dest_addr OPTIONAL,
OUT UINT16 *protocol OPTIONAL
- )
-;
+ );
typedef
EFI_STATUS
@@ -424,8 +398,7 @@ EFIAPI
InitializeSnpNiiDriver (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
- )
-;
+ );
#define SNP_MEM_PAGES(x) (((x) - 1) / 4096 + 1)
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
index c6108e2514..d63c294945 100644
--- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
+++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
@@ -141,8 +141,7 @@ Tcp4GetMode (
Option->EnableNagle = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_NAGLE));
Option->EnableTimeStamp = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_TS));
- Option->EnableWindowScaling = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_WS))
-;
+ Option->EnableWindowScaling = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_WS));
Option->EnableSelectiveAck = FALSE;
Option->EnablePathMtuDiscovery = FALSE;