]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix coding style issue.
authorniry <niry@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 25 Mar 2009 05:39:56 +0000 (05:39 +0000)
committerniry <niry@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 25 Mar 2009 05:39:56 +0000 (05:39 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7942 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c
MdeModulePkg/Library/DxeNetLib/NetBuffer.c

index 92c04787b6def2bbed1664f403bff413f24daf29..f37bb91ad8cf78cb508d0f066225d200ddec4b94 100644 (file)
@@ -532,7 +532,7 @@ IpIoTransmitHandlerDpc (
 \r
   IpIo      = SndEntry->IpIo;\r
 \r
-  if (IpIo->PktSentNotify && SndEntry->NotifyData) {\r
+  if ((IpIo->PktSentNotify != NULL) && (SndEntry->NotifyData != NULL)) {\r
     IpIo->PktSentNotify (\r
             SndEntry->SndToken->Status,\r
             SndEntry->Context,\r
index 0cfaec3d603687fa192d9129834f4e5de2629444..61d49087e9ea36e07dc80fae715ee4869e11ff9e 100644 (file)
@@ -168,7 +168,7 @@ NetbufFreeVector (
     // isn't NULL. If NET_VECTOR_OWN_FIRST is set, release the\r
     // first block since it is allocated by us\r
     //\r
-    if (Vector->Flag & NET_VECTOR_OWN_FIRST) {\r
+    if ((Vector->Flag & NET_VECTOR_OWN_FIRST) != 0) {\r
       gBS->FreePool (Vector->Block[0].Bulk);\r
     }\r
 \r
@@ -978,7 +978,7 @@ NetbufFromBufList (
     NET_CHECK_SIGNATURE (Nbuf, NET_BUF_SIGNATURE);\r
 \r
     for (Index = 0; Index < Nbuf->BlockOpNum; Index++) {\r
-      if (Nbuf->BlockOp[Index].Size) {\r
+      if (Nbuf->BlockOp[Index].Size != 0) {\r
         Fragment[Current].Bulk = Nbuf->BlockOp[Index].Head;\r
         Fragment[Current].Len  = Nbuf->BlockOp[Index].Size;\r
         Current++;\r