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

[win-pv-devel] [PATCH] Remove Relations->Count assertion



It's bogus in the case of block-detach

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xendisk/fdo.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/xendisk/fdo.c b/src/xendisk/fdo.c
index 779b7ad..082e115 100644
--- a/src/xendisk/fdo.c
+++ b/src/xendisk/fdo.c
@@ -866,7 +866,6 @@ FdoQueryDeviceRelations(
     if (Relations->Count != 0)
         __FdoEnumerate(Fdo, Relations);
 
-    Count = 0;
     for (ListEntry = Fdo->Dx->ListEntry.Flink;
          ListEntry != &Fdo->Dx->ListEntry;
          ListEntry = ListEntry->Flink) {
@@ -877,10 +876,7 @@ FdoQueryDeviceRelations(
 
         if (PdoGetDevicePnpState(Pdo) == Present)
             PdoSetDevicePnpState(Pdo, Enumerated);
-
-        Count++;
     }
-    ASSERT3U(Relations->Count, ==, Count);
 
     __FdoReleaseMutex(Fdo);
 
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://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®.