diff options
author | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-26 03:40:27 +0000 |
---|---|---|
committer | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-26 03:40:27 +0000 |
commit | c191cdd1ff66422a10d525f8e3c98bba595d985e (patch) | |
tree | 2b66532132de7eef3644cf1cf858eb716f57e342 | |
parent | 9a8fe604fe442e970a370f0455dce282594f989f (diff) | |
download | edk2-platforms-c191cdd1ff66422a10d525f8e3c98bba595d985e.tar.xz |
Remove a goto statement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7131 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c | 4 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c | 3 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c | 10 |
3 files changed, 11 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c index 38fb6ade42..8443f34e04 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c @@ -282,6 +282,7 @@ TcpTrimSegment ( Seg->Seq = Seg->End;
NetbufTrim (Nbuf, Nbuf->TotalSize, NET_BUF_HEAD);
+ return;
}
//
@@ -1266,6 +1267,9 @@ NO_UPDATE: TcpClose (Tcb);
}
break;
+
+ default:
+ break;
}
//
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c index 9fa9e8315a..1b0ae5ec54 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c @@ -839,6 +839,9 @@ TcpOnAppConsume ( case TCP_LAST_ACK:
case TCP_TIME_WAIT:
return;
+
+ default:
+ break;
}
}
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c index 945a5cac22..616e9e23eb 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c @@ -549,15 +549,13 @@ TcpTickingDpc ( //
if ((Next->BackLink != Entry) ||
(Tcb->EnabledTimer == 0)) {
-
- goto NextConnection;
+ break;
}
}
}
-
- TcpUpdateTimer (Tcb);
-NextConnection:
- ;
+ if (Index == TCP_TIMER_NUMBER) {
+ TcpUpdateTimer (Tcb);
+ }
}
}
|