[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH 1/2] Fix some logical stupidity



Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenvif/vif.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/xenvif/vif.c b/src/xenvif/vif.c
index 28c77e1..84da068 100644
--- a/src/xenvif/vif.c
+++ b/src/xenvif/vif.c
@@ -504,7 +504,7 @@ VifTransmitterQueuePacketsVersion2(
 
     AcquireMrswLockShared(&Context->Lock);
 
-    if (Context->Enabled == FALSE)
+    if (!Context->Enabled)
         goto done;
 
     InitializeListHead(&Reject);
@@ -575,7 +575,7 @@ VifTransmitterQueuePacketVersion4(
     AcquireMrswLockShared(&Context->Lock);
 
     status = STATUS_UNSUCCESSFUL;
-    if (Context->Enabled == FALSE)
+    if (!Context->Enabled)
         goto done;
 
     status = TransmitterQueuePacket(FrontendGetTransmitter(Context->Frontend),
@@ -624,7 +624,7 @@ VifTransmitterQueuePacketVersion5(
     AcquireMrswLockShared(&Context->Lock);
 
     status = STATUS_UNSUCCESSFUL;
-    if (Context->Enabled == FALSE)
+    if (!Context->Enabled)
         goto done;
 
     status = TransmitterQueuePacket(FrontendGetTransmitter(Context->Frontend),
@@ -664,7 +664,7 @@ VifTransmitterQueuePacket(
     AcquireMrswLockShared(&Context->Lock);
 
     status = STATUS_UNSUCCESSFUL;
-    if (Context->Enabled == FALSE)
+    if (!Context->Enabled)
         goto done;
 
     status = TransmitterQueuePacket(FrontendGetTransmitter(Context->Frontend),
-- 
2.5.3


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.