staging: hv: remove ASSERT()s in RingBuffer.c
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 5 May 2010 19:27:48 +0000 (15:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:14 +0000 (11:36 -0700)
These ASSERT()s serve no purpose other than for debugging.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/RingBuffer.c

index 08b3c5567e9cd5a2fbbd8f5436c1fb95e3be7001..ee481fd972b77f24753df054c8ddd0c39cc800c6 100644 (file)
@@ -72,7 +72,7 @@ GetNextWriteLocation(RING_BUFFER_INFO *RingInfo)
 {
        u32 next = RingInfo->RingBuffer->WriteIndex;
 
-       ASSERT(next < RingInfo->RingDataSize);
+       /* ASSERT(next < RingInfo->RingDataSize); */
 
        return next;
 }
@@ -106,7 +106,7 @@ GetNextReadLocation(RING_BUFFER_INFO *RingInfo)
 {
        u32 next = RingInfo->RingBuffer->ReadIndex;
 
-       ASSERT(next < RingInfo->RingDataSize);
+       /* ASSERT(next < RingInfo->RingDataSize); */
 
        return next;
 }
@@ -126,7 +126,7 @@ GetNextReadLocationWithOffset(RING_BUFFER_INFO *RingInfo, u32 Offset)
 {
        u32 next = RingInfo->RingBuffer->ReadIndex;
 
-       ASSERT(next < RingInfo->RingDataSize);
+       /* ASSERT(next < RingInfo->RingDataSize); */
        next += Offset;
        next %= RingInfo->RingDataSize;