]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
Coding style fix and minor improvements.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Get_status.c
index edd2424c2cea5f8d7624df3ea490f223c4df04da..dc742081dadf1f32e216c79adaeaeeb4feac5099 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-               Implementation of reading the current interrupt status and recycled transmit\r
-         buffer status from a network interface.\r
+  Implementation of reading the current interrupt status and recycled transmit\r
+  buffer status from a network interface.\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
+Copyright (c) 2004 - 2010, Intel Corporation. <BR> \r
 All rights reserved. This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
@@ -115,8 +115,8 @@ PxeGetStatus (
   if (TransmitBufferListPtr != NULL) {\r
     *TransmitBufferListPtr =\r
       (\r
-        (Snp->Cdb.StatFlags & PXE_STATFLAGS_GET_STATUS_NO_TXBUFS_WRITTEN) ||\r
-        (Snp->Cdb.StatFlags & PXE_STATFLAGS_GET_STATUS_TXBUF_QUEUE_EMPTY)\r
+        ((Snp->Cdb.StatFlags & PXE_STATFLAGS_GET_STATUS_NO_TXBUFS_WRITTEN) != 0) ||\r
+        ((Snp->Cdb.StatFlags & PXE_STATFLAGS_GET_STATUS_TXBUF_QUEUE_EMPTY) != 0)\r
       ) ? 0 : (VOID *) (UINTN) Db->TxBuffer[0];\r
 \r
   }\r