Fix coding style issue.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7942 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niry 2009-03-25 05:39:56 +00:00
parent bd682470fc
commit 8de75da28b
2 changed files with 3 additions and 3 deletions

View File

@ -532,7 +532,7 @@ IpIoTransmitHandlerDpc (
IpIo = SndEntry->IpIo;
if (IpIo->PktSentNotify && SndEntry->NotifyData) {
if ((IpIo->PktSentNotify != NULL) && (SndEntry->NotifyData != NULL)) {
IpIo->PktSentNotify (
SndEntry->SndToken->Status,
SndEntry->Context,

View File

@ -168,7 +168,7 @@ NetbufFreeVector (
// isn't NULL. If NET_VECTOR_OWN_FIRST is set, release the
// first block since it is allocated by us
//
if (Vector->Flag & NET_VECTOR_OWN_FIRST) {
if ((Vector->Flag & NET_VECTOR_OWN_FIRST) != 0) {
gBS->FreePool (Vector->Block[0].Bulk);
}
@ -978,7 +978,7 @@ NetbufFromBufList (
NET_CHECK_SIGNATURE (Nbuf, NET_BUF_SIGNATURE);
for (Index = 0; Index < Nbuf->BlockOpNum; Index++) {
if (Nbuf->BlockOp[Index].Size) {
if (Nbuf->BlockOp[Index].Size != 0) {
Fragment[Current].Bulk = Nbuf->BlockOp[Index].Head;
Fragment[Current].Len = Nbuf->BlockOp[Index].Size;
Current++;