From 8de75da28bbd9a4d3c54fba99d943f9019b52193 Mon Sep 17 00:00:00 2001 From: niry Date: Wed, 25 Mar 2009 05:39:56 +0000 Subject: [PATCH] Fix coding style issue. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7942 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c | 2 +- MdeModulePkg/Library/DxeNetLib/NetBuffer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c index 92c04787b6..f37bb91ad8 100644 --- a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c +++ b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c @@ -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, diff --git a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c index 0cfaec3d60..61d49087e9 100644 --- a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c +++ b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c @@ -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++; -- 2.39.2