Remove a goto statement.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7131 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niry
2008-12-26 03:40:27 +00:00
parent 9a8fe604fe
commit c191cdd1ff
3 changed files with 11 additions and 6 deletions

View File

@ -282,6 +282,7 @@ TcpTrimSegment (
Seg->Seq = Seg->End; Seg->Seq = Seg->End;
NetbufTrim (Nbuf, Nbuf->TotalSize, NET_BUF_HEAD); NetbufTrim (Nbuf, Nbuf->TotalSize, NET_BUF_HEAD);
return;
} }
// //
@ -1266,6 +1267,9 @@ NO_UPDATE:
TcpClose (Tcb); TcpClose (Tcb);
} }
break; break;
default:
break;
} }
// //

View File

@ -839,6 +839,9 @@ TcpOnAppConsume (
case TCP_LAST_ACK: case TCP_LAST_ACK:
case TCP_TIME_WAIT: case TCP_TIME_WAIT:
return; return;
default:
break;
} }
} }

View File

@ -549,15 +549,13 @@ TcpTickingDpc (
// //
if ((Next->BackLink != Entry) || if ((Next->BackLink != Entry) ||
(Tcb->EnabledTimer == 0)) { (Tcb->EnabledTimer == 0)) {
break;
goto NextConnection;
} }
} }
} }
if (Index == TCP_TIMER_NUMBER) {
TcpUpdateTimer (Tcb); TcpUpdateTimer (Tcb);
NextConnection: }
;
} }
} }