]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Library/DxeNetLib/NetBuffer.c
NetworkPkg/DxeNetLib: Change the order of conditions in IF statement
[mirror_edk2.git] / NetworkPkg / Library / DxeNetLib / NetBuffer.c
index a232802c9a2100ad8ee2b36acd42bb88a8089219..329a17623d9411ebf491bc87f0ec9658127e37f4 100644 (file)
@@ -1063,7 +1063,7 @@ NetbufAllocSpace (
     } else {\r
       NetbufGetByte (Nbuf, 0, &Index);\r
 \r
-      if ((NET_HEADSPACE(&(Nbuf->BlockOp[Index])) < Len) && (Index > 0)) {\r
+      if ((Index != 0) && (NET_HEADSPACE(&(Nbuf->BlockOp[Index])) < Len)) {\r
         Index--;\r
       }\r
     }\r