From: Bill Pemberton Date: Wed, 5 May 2010 19:27:48 +0000 (-0400) Subject: staging: hv: remove ASSERT()s in RingBuffer.c X-Git-Tag: MMI-PSA29.97-13-9~23841^2^2~159 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1bbdd7a5380239533c4bb648c5d5d9510f12974b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: hv: remove ASSERT()s in RingBuffer.c These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton Cc: Hank Janssen Cc: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index 08b3c5567e9c..ee481fd972b7 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c @@ -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;