diff options
author | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-03-25 05:39:56 +0000 |
---|---|---|
committer | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-03-25 05:39:56 +0000 |
commit | 8de75da28bbd9a4d3c54fba99d943f9019b52193 (patch) | |
tree | fdee0f894059cd9659f133920e4fbb4402205ad5 | |
parent | bd682470fcbdaecf9e1b6376940274db23e1a099 (diff) | |
download | edk2-platforms-8de75da28bbd9a4d3c54fba99d943f9019b52193.tar.xz |
Fix coding style issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7942 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c | 2 | ||||
-rw-r--r-- | 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++;
|